-
Notifications
You must be signed in to change notification settings - Fork 880
refactor: add replication exponential histograms #7667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
refactor: add replication exponential histograms #7667
Conversation
Keep the PR focused on replication histogram code by undoing local config and docker file changes from the original commit.
Pass a clock.TimeSource into TaskStore and use it for latency measurement and log throttling to keep timing consistent and testable. Co-authored-by: Cursor <[email protected]>
This reverts commit c65fb81.
Inject a clock.TimeSource into TaskStore to measure histogram latency and log throttling in a testable, consistent way.
df3202e to
9659bb6
Compare
| @@ -0,0 +1,193 @@ | |||
| package replication | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to test the histograms. We can remove this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do either one by one or include all of the changes in one PR. Right now we are doing a change in the task_ack_manager and one in the task_store. I'm fine with either going one by one, file by file or all of them, but right now we are doing two different files and not all of them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, for the cache size I think we should go with gauge and not histogram
Record replication cache size as a gauge rather than a timer when updating cache size metrics.
Drop the exponential histogram test file per review feedback.
Emit an exponential histogram alongside the replication tasks applied latency timer for consistent latency coverage.
Code Review ✅ Approved 1 resolved / 1 findingsClean implementation of exponential histogram metrics for replication latency tracking. Follows established dual-emit migration pattern, adds proper injectable time sources for testability, and includes a sensible bug fix changing CacheSize from Timer to Gauge. ✅ 1 resolved✅ Quality: Inconsistent time source usage in TaskStore
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Summary
Test plan