Skip to content

[flink] Add per-table rowsWritten counter to StoreSinkWriteImpl - #9893

Draft
JTaky wants to merge 1 commit into
apache:masterfrom
JTaky:oleksandr.nitavskyi/writer-row-metrics
Draft

JTaky wants to merge 1 commit into
apache:masterfrom
JTaky:oleksandr.nitavskyi/writer-row-metrics

Conversation

@JTaky

@JTaky JTaky commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Purpose

There is no continuous per-(table, subtask) view of write throughput: CommitMetrics counters only update when a commit lands, so they go dark during checkpoint stalls that need diagnosing, and every writerBuffer gauge except numWriters reports the shared per-subtask buffer pool rather than anything per-table.

Register a rowsWritten counter on the writer operator's MetricGroup under a per-table metric group, so it is tagged with both table and subtask and is polled independently of checkpointing.

Tests

Deployed run in prod for us and caught some tables with high churn which would benefit from more buckets

@JTaky JTaky changed the title Add per-table rowsWritten counter to StoreSinkWriteImpl [flink] Add per-table rowsWritten counter to StoreSinkWriteImpl Sep 16, 2026
There is no continuous per-(table, subtask) view of write throughput:
CommitMetrics counters only update when a commit lands, so they go
dark during checkpoint stalls that need diagnosing, and every
writerBuffer gauge except numWriters reports the shared per-subtask
buffer pool rather than anything per-table.

Register a rowsWritten counter on the writer operator's MetricGroup
under a per-table metric group, so it is tagged with both table and
subtask and is polled independently of checkpointing.

Counted on the returned record so rows dropped by the row-kind filter
(ignore-delete) are excluded, and in all three write() overloads since
they do not delegate to each other. Rows are counted entering the
write buffer, making this an upper bound on
@JTaky
JTaky force-pushed the oleksandr.nitavskyi/writer-row-metrics branch from 01de283 to d28f654 Compare September 16, 2026 11:43
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