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

[fix] [log] Do not print warn log when concurrently publishing and switching ledgers #23209

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

poorbarcode
Copy link
Contributor

Fixes #23208

Main Issue: #23208

Motivation & Modifications

When publishing and ledger switching execute concurrently, the broker will print a warn-level log An OpAddEntry's ledger is empty., but it should not be a warn level. The test testConcurrentlyOfPublishAndSwitchLedger can reproduce the warning log printing.

Documentation

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

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode added this to the 4.0.0 milestone Aug 21, 2024
@poorbarcode poorbarcode self-assigned this Aug 21, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 21, 2024
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lhotari
Copy link
Member

lhotari commented Aug 21, 2024

It's necessary to cherry-pick to the branches where #22221 exists.

@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2024

Codecov Report

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

Project coverage is 74.52%. Comparing base (bbc6224) to head (b6283f9).
Report is 542 commits behind head on master.

Files Patch % Lines
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23209      +/-   ##
============================================
+ Coverage     73.57%   74.52%   +0.94%     
- Complexity    32624    33656    +1032     
============================================
  Files          1877     1918      +41     
  Lines        139502   144628    +5126     
  Branches      15299    15812     +513     
============================================
+ Hits         102638   107781    +5143     
+ Misses        28908    28588     -320     
- Partials       7956     8259     +303     
Flag Coverage Δ
inttests 27.88% <0.00%> (+3.29%) ⬆️
systests 24.72% <0.00%> (+0.39%) ⬆️
unittests 73.88% <0.00%> (+1.03%) ⬆️

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

Files Coverage Δ
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 81.65% <0.00%> (+0.99%) ⬆️

... and 538 files with indirect coverage changes

@poorbarcode poorbarcode merged commit 0a5cb51 into apache:master Aug 22, 2024
51 checks passed
poorbarcode added a commit that referenced this pull request Aug 22, 2024
poorbarcode added a commit that referenced this pull request Aug 22, 2024
poorbarcode added a commit that referenced this pull request Aug 22, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 22, 2024
…itching ledgers (apache#23209)

(cherry picked from commit 0a5cb51)
(cherry picked from commit 57b0ca4)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 23, 2024
…itching ledgers (apache#23209)

(cherry picked from commit 0a5cb51)
(cherry picked from commit 57b0ca4)
grssam pushed a commit to grssam/pulsar that referenced this pull request Sep 4, 2024
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.

[Bug] Excessive log warnings about "An OpAddEntry's ledger is empty."
5 participants