Skip to content

changefeedccl: fix blocking buffer memory metrics#154445

Open
asg0451 wants to merge 1 commit intocockroachdb:masterfrom
asg0451:fix-blocking-buffer-metrics
Open

changefeedccl: fix blocking buffer memory metrics#154445
asg0451 wants to merge 1 commit intocockroachdb:masterfrom
asg0451:fix-blocking-buffer-metrics

Conversation

@asg0451
Copy link
Copy Markdown
Contributor

@asg0451 asg0451 commented Sep 30, 2025

Previously, we had separated blocking buffer
metrics into one copy for each buffer. This was
incorrect in the case of the memory accounting
metrics, as we don't dealloc and realloc event
memory when it's going from one buffer to the
other.

Fixes #147624

Release note (ops change): Removed misleading
metrics:
changefeed.buffer_entries.allocated_mem.rangefeed,
changefeed.buffer_entries.allocated_mem.aggregator,
changefeed.buffer_entries_mem.acquired.rangefeed,
changefeed.buffer_entries_mem.acquired.aggregator,
changefeed.buffer_entries_mem.released.rangefeed,
changefeed.buffer_entries_mem.released.aggregator

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@asg0451 asg0451 force-pushed the fix-blocking-buffer-metrics branch from a7b3cd7 to 7d4af7b Compare September 30, 2025 15:03
@asg0451 asg0451 marked this pull request as ready for review September 30, 2025 15:05
@asg0451 asg0451 requested a review from a team as a code owner September 30, 2025 15:05
@asg0451 asg0451 requested review from a team, KeithCh and rharding6373 and removed request for a team and rharding6373 September 30, 2025 15:05
@asg0451 asg0451 force-pushed the fix-blocking-buffer-metrics branch 4 times, most recently from b7f08b9 to debec41 Compare September 30, 2025 20:16
Previously, we had separated blocking buffer
metrics into one copy for each buffer. This was
incorrect in the case of the memory accounting
metrics, as we don't dealloc and realloc event
memory when it's going from one buffer to the
other.

Fixes cockroachdb#147624

Release note (ops change): Removed misleading
metrics:
`changefeed.buffer_entries.allocated_mem.rangefeed`,
`changefeed.buffer_entries.allocated_mem.aggregator`,
`changefeed.buffer_entries_mem.acquired.rangefeed`,
`changefeed.buffer_entries_mem.acquired.aggregator`,
`changefeed.buffer_entries_mem.released.rangefeed`,
`changefeed.buffer_entries_mem.released.aggregator`
@asg0451 asg0451 force-pushed the fix-blocking-buffer-metrics branch from debec41 to 76c5a7d Compare September 30, 2025 20:22
@asg0451
Copy link
Copy Markdown
Contributor Author

asg0451 commented Sep 30, 2025

the more i argue with the metrics system the more i want to just rip out the old versions and be done with it

@KeithCh
Copy link
Copy Markdown
Contributor

KeithCh commented Sep 30, 2025

I'll let you take care of that before I review 😬

@asg0451 asg0451 removed the request for review from KeithCh October 1, 2025 14:41
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.

cdc: double check disambiguate kv buffer metrics

3 participants