Skip to content
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

Improving logs and metric update logic #14762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

9aman
Copy link
Contributor

@9aman 9aman commented Jan 6, 2025

  • The fetchLatestStreamOffset doesn't throw an exception when it's not able to fetch the latest offset.

  • The logs are not printed in case the consumer is not able to fetch the latest offset.

  • This PR improves the logs.

  • The current and latest offset metrics are set to null in case no messages are fetched.

  • Have updated the logic to pass currentOffset in case the offset doesn't change due to absence of messages.

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 63.85%. Comparing base (59551e4) to head (56dee59).
Report is 1537 commits behind head on master.

Files with missing lines Patch % Lines
...a/manager/realtime/RealtimeSegmentDataManager.java 0.00% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14762      +/-   ##
============================================
+ Coverage     61.75%   63.85%   +2.10%     
- Complexity      207     1608    +1401     
============================================
  Files          2436     2703     +267     
  Lines        133233   150741   +17508     
  Branches      20636    23290    +2654     
============================================
+ Hits          82274    96263   +13989     
- Misses        44911    47286    +2375     
- Partials       6048     7192    +1144     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.83% <0.00%> (+2.12%) ⬆️
java-21 63.72% <0.00%> (+2.09%) ⬆️
skip-bytebuffers-false 63.85% <0.00%> (+2.10%) ⬆️
skip-bytebuffers-true 63.71% <0.00%> (+35.98%) ⬆️
temurin 63.85% <0.00%> (+2.10%) ⬆️
unittests 63.85% <0.00%> (+2.10%) ⬆️
unittests1 56.29% <0.00%> (+9.40%) ⬆️
unittests2 34.16% <0.00%> (+6.43%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants