[fix][broker] Avoid block markDeletePosition forward when skip lost entries#21210
Merged
Jason918 merged 10 commits intoapache:masterfrom Dec 16, 2024
Merged
[fix][broker] Avoid block markDeletePosition forward when skip lost entries#21210Jason918 merged 10 commits intoapache:masterfrom
Jason918 merged 10 commits intoapache:masterfrom
Conversation
Jason918
approved these changes
Sep 26, 2023
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java
Show resolved
Hide resolved
poorbarcode
reviewed
Sep 26, 2023
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.java
Show resolved
Hide resolved
Contributor
Author
|
/pulsarbot rerun-failure-checks |
Contributor
Author
|
/pulsarbot rerun-failure-checks |
|
The pr had no activity for 30 days, mark with Stale label. |
lhotari
approved these changes
Nov 9, 2023
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21210 +/- ##
============================================
+ Coverage 73.57% 74.45% +0.87%
- Complexity 32624 35113 +2489
============================================
Files 1877 1945 +68
Lines 139502 147483 +7981
Branches 15299 16276 +977
============================================
+ Hits 102638 109802 +7164
- Misses 28908 29217 +309
- Partials 7956 8464 +508
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
# Conflicts: # managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedCursorTest.java
Contributor
Author
|
If you have time, please help me take a look, thank you very much. @Technoboy- @poorbarcode |
4 tasks
# Conflicts: # managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedCursorTest.java
hanmz
added a commit
to hanmz/pulsar
that referenced
this pull request
Feb 12, 2025
…ntries (apache#21210) Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com> Co-authored-by: Lari Hotari <lhotari@apache.org>
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.
Motivation
The configuration autoSkipNonRecoverableData is designed to turn this feature on if we can accept partial data loss. When some entries is lost, the broker will still work.
cursor.readPositionwill move to next position for skip these positions. But now we have this problem:cursor.readPositioncan move to next positition, but thecursor.markDeletePositioncan not forward.for example:
The root cause is: When entries lost, lost entries not be delete from cursor.
Modifications
When skip lost entries, delete these entries from cursor.
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: hanmz#4