-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[exporterhelper] Fix persistent queue size backup on reads #9740
[exporterhelper] Fix persistent queue size backup on reads #9740
Conversation
Persistent queue size backup on reads should depend on readIndex, not writeIndex.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9740 +/- ##
=======================================
Coverage 90.98% 90.98%
=======================================
Files 349 349
Lines 18572 18572
=======================================
Hits 16897 16897
Misses 1348 1348
Partials 327 327 ☔ View full report in Codecov by Sentry. |
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.
@carsonip nice find. Can you add a test that covers this situation?
Thank you! @TylerHelmuth a test to catch this might be too complicated. Given that this code path covers a very narrow edge case and is only beneficial for use cases when the collector is killed, I think it's ok to merge as is |
…metry#9740) **Description:** Persistent queue size backup on reads should depend on readIndex, not writeIndex.
Description:
Persistent queue size backup on reads should depend on readIndex, not
writeIndex.