-
Notifications
You must be signed in to change notification settings - Fork 728
fix topic.partition.committed_end_to_end_lag_milliseconds_max metric LOGBROKER-10068 #28527
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
fix topic.partition.committed_end_to_end_lag_milliseconds_max metric LOGBROKER-10068 #28527
Conversation
|
🟢 |
a45444d to
dd69e6e
Compare
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
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.
Pull Request Overview
This PR fixes the topic.partition.committed_end_to_end_lag_milliseconds_max metric calculation by ensuring that actual timestamps from user info are used when available instead of estimated timestamps. This addresses issue LOGBROKER-10068.
Key changes:
- Added logic to use actual timestamps (
userInfo.CreateTimestampanduserInfo.WriteTimestamp) whenActualTimestampsflag is true in theCreateSnapshotfunction - Updated test to validate the corrected committed time lag calculation with proper message sequence and verification
- Changed
seqNovalue from 11 to 10 to match themaxSeqNoconstraint
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ydb/core/persqueue/pqtablet/partition/partition.cpp | Added conditional branch to use actual timestamps when available for calculating committed message lag, and changed snapshot variables from auto to const auto |
| ydb/core/persqueue/ut/ut_with_sdk/topic_ut.cpp | Updated test to verify the fixed metric with corrected sequence number, proper message verification queue, and updated expected committed time lag values |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
…
Changelog entry
...
Changelog category
Description for reviewers
LOGBROKER-10068