Skip to content

mz-debug: Fix replica query#36168

Open
def- wants to merge 1 commit intoMaterializeInc:mainfrom
def-:pr-mz-debug-improv
Open

mz-debug: Fix replica query#36168
def- wants to merge 1 commit intoMaterializeInc:mainfrom
def-:pr-mz-debug-improv

Conversation

@def-
Copy link
Copy Markdown
Contributor

@def- def- commented Apr 21, 2026

Removed coalesce(heap_limit, memory_bytes + disk_bytes): current usage was used as heap limit, which seems wrong.

Using DISTINCT ON (replica_id, process_id) ORDER BY occurred_at DESC to deterministically pick the latest metric per process, and sum over them; instead of getting one arbitrary process.

Follow-up to #35200

Removed coalesce(heap_limit, memory_bytes + disk_bytes): current usage was used as heap limit, which seems wrong.
using `DISTINCT ON (replica_id, process_id) ORDER BY occurred_at DESC` to deterministically pick the latest metric per process, and sum over them; instead of getting one arbitrary process.
@def- def- requested a review from sjwiesman April 21, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant