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][broker] type cast on exceptions in exceptionally can lead to lost calls #23117

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

shibd
Copy link
Member

@shibd shibd commented Aug 2, 2024

From: #23102 (comment)

Motivation

Typecast on exceptions failed in future.exceptionally will cause lost calls, and not having any log.

Modifications

Ensure that all conversions of ManagedLedgerException are preceded by checks.

Verifying this change

  • All unit tests passed, not have any behavior change.

Documentation

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

@shibd shibd added type/bug The PR fixed a bug or issue reported a bug ready-to-test release/3.0.7 release/3.3.2 labels Aug 2, 2024
@shibd shibd added this to the 3.4.0 milestone Aug 2, 2024
@shibd shibd requested a review from poorbarcode August 2, 2024 02:47
@shibd shibd self-assigned this Aug 2, 2024
@shibd shibd requested a review from lhotari August 2, 2024 02:47
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 2, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 73.44%. Comparing base (bbc6224) to head (f08e843).
Report is 487 commits behind head on master.

Files Patch % Lines
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 50.00% 2 Missing ⚠️
.../apache/pulsar/compaction/CompactedTopicUtils.java 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23117      +/-   ##
============================================
- Coverage     73.57%   73.44%   -0.13%     
- Complexity    32624    33222     +598     
============================================
  Files          1877     1919      +42     
  Lines        139502   144103    +4601     
  Branches      15299    15744     +445     
============================================
+ Hits         102638   105836    +3198     
- Misses        28908    30149    +1241     
- Partials       7956     8118     +162     
Flag Coverage Δ
inttests 27.50% <18.18%> (+2.91%) ⬆️
systests 24.71% <0.00%> (+0.39%) ⬆️
unittests 72.52% <72.72%> (-0.33%) ⬇️

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

Files Coverage Δ
...kkeeper/mledger/impl/ManagedLedgerFactoryImpl.java 82.75% <100.00%> (+1.36%) ⬆️
...sar/broker/service/persistent/PersistentTopic.java 79.47% <100.00%> (+1.01%) ⬆️
.../apache/pulsar/compaction/CompactedTopicUtils.java 79.54% <0.00%> (+5.07%) ⬆️
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 81.65% <50.00%> (+0.99%) ⬆️

... and 514 files with indirect coverage changes

@shibd shibd merged commit 12588a8 into apache:master Aug 2, 2024
56 of 58 checks passed
shibd added a commit to shibd/pulsar that referenced this pull request Aug 2, 2024
shibd added a commit to shibd/pulsar that referenced this pull request Aug 2, 2024
shibd added a commit that referenced this pull request Aug 2, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 8, 2024
…st calls (apache#23117)

(cherry picked from commit 12588a8)
(cherry picked from commit 9483457)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 12, 2024
…st calls (apache#23117)

(cherry picked from commit 12588a8)
(cherry picked from commit 9483457)
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.

4 participants