Repository navigation
[fix] [ml] Add entry fail due to race condition about add entry failed/timeout and switch ledger - #22221
Merged
poorbarcode merged 1 commit intoMay 21, 2024
Conversation
poorbarcode
requested review from
Technoboy-,
codelipenghui,
hangc0276,
lhotari and
liudezhi2098
March 11, 2024 02:44
lhotari
reviewed
Mar 11, 2024
dao-jun
reviewed
Mar 11, 2024
poorbarcode
requested review from
dao-jun and
lhotari
and removed request for
dao-jun
March 13, 2024 18:44
lhotari
requested changes
Apr 15, 2024
lhotari
reviewed
Apr 15, 2024
lhotari
reviewed
Apr 15, 2024
lhotari
reviewed
Apr 15, 2024
lhotari
approved these changes
Apr 15, 2024
dao-jun
approved these changes
Apr 15, 2024
Contributor
Author
|
/pulsarbot rerun-failure-checks |
Contributor
Author
Rebased from |
eolivelli
approved these changes
May 20, 2024
eolivelli
left a comment
Contributor
There was a problem hiding this comment.
LGTM
this seems a pretty serious bug, to port to all the active branches
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22221 +/- ##
============================================
- Coverage 73.57% 73.20% -0.37%
+ Complexity 32624 2511 -30113
============================================
Files 1877 1889 +12
Lines 139502 141424 +1922
Branches 15299 15518 +219
============================================
+ Hits 102638 103536 +898
- Misses 28908 29883 +975
- Partials 7956 8005 +49
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Technoboy-
pushed a commit
that referenced
this pull request
May 21, 2024
…d/timeout and switch ledger (#22221)
Technoboy-
pushed a commit
that referenced
this pull request
May 21, 2024
…d/timeout and switch ledger (#22221)
nikhil-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
May 31, 2024
…d/timeout and switch ledger (apache#22221) (cherry picked from commit b798e7f)
nikhil-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jun 4, 2024
…d/timeout and switch ledger (apache#22221) (cherry picked from commit b798e7f)
nikhil-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jun 4, 2024
…d/timeout and switch ledger (apache#22221) (cherry picked from commit b798e7f)
srinath-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jun 7, 2024
…d/timeout and switch ledger (apache#22221) (cherry picked from commit b798e7f)
2 of 3 tasks
Member
|
@poorbarcode I have created #23208 about the excessive log warnings that this change causes. Please take a look. |
Member
|
PR that fixes the excessive warnings: #23209 |
1 of 4 tasks
hanmz
pushed a commit
to hanmz/pulsar
that referenced
this pull request
Feb 12, 2025
…d/timeout and switch ledger (apache#22221)
1 of 2 tasks
2 of 3 tasks
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue 1 without enable
managedLedgerAddEntryTimeoutSecondsBackground: Flow when adding entry failed
Issue
COMPLETEDfailed[4]Reproduce: no test to reproduce this case yet.
Issue 2 that enabled
managedLedgerAddEntryTimeoutSecondsBackground: Flow when adding entry timeout
Issue
The flow when adding entry timeout closing the first add entry request at first, it may cause an issue like this:
timeout task - step 1: Close the first add entry request.callback of OpAddEntry 1: discard the callback of the first OpAddEntry because it is closed, recycle the object OpAddEntry.callback of OpAddEntry 2: tries do a completed callbackfalse, and the first OpAddEntry has been recycled, Pulsar will get an NPE[2].Reproduce: the new test
testAddEntryResponseTimeoutModifications
COMPLETEDfailed.Footnotes
[1]: OpAddEntry.handleAddTimeoutFailure
[2]: OpAddEntry.run
[3]: ManagedLedgerImpl.createNewOpAddEntryForNewLedger
[4]: OpAddEntry.addComplete
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x