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

[improve][broker] Remove spamming logs for customized managed ledger #23862

Merged

Conversation

BewareMyPower
Copy link
Contributor

Motivation

For a customized managed ledger implementation, getCursors() might not return a ManagedCursorContainer. In this case, updateOldPositionInfo() will return a failed future so that monitorBacklogQuota will keep printing spamming logs.

Modifications

Return a null completed future in updateOldPositionInfo if getCursors() does not return a ManagedCursorContainer.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@BewareMyPower BewareMyPower self-assigned this Jan 17, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 17, 2025
@BewareMyPower BewareMyPower added release/3.0.9 release/3.3.5 release/4.0.3 and removed doc-not-needed Your PR changes do not impact docs labels Jan 17, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 17, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.13%. Comparing base (bbc6224) to head (c511cc5).
Report is 858 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23862      +/-   ##
============================================
+ Coverage     73.57%   74.13%   +0.55%     
+ Complexity    32624    31745     -879     
============================================
  Files          1877     1853      -24     
  Lines        139502   143598    +4096     
  Branches      15299    16307    +1008     
============================================
+ Hits         102638   106453    +3815     
+ Misses        28908    28746     -162     
- Partials       7956     8399     +443     
Flag Coverage Δ
inttests 26.67% <0.00%> (+2.09%) ⬆️
systests 23.17% <0.00%> (-1.15%) ⬇️
unittests 73.65% <100.00%> (+0.81%) ⬆️

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

Files with missing lines Coverage Δ
...sar/broker/service/persistent/PersistentTopic.java 79.91% <100.00%> (+1.45%) ⬆️

... and 1026 files with indirect coverage changes

@BewareMyPower BewareMyPower merged commit a93e93d into apache:master Jan 20, 2025
61 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-backlog-check branch January 20, 2025 14:08
lhotari pushed a commit that referenced this pull request Jan 20, 2025
lhotari pushed a commit that referenced this pull request Jan 20, 2025
lhotari pushed a commit that referenced this pull request Jan 20, 2025
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jan 31, 2025
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants