[fix] Failed read entries after multiple decommissioning#4613
Merged
zymap merged 27 commits intoapache:masterfrom Oct 29, 2025
Merged
[fix] Failed read entries after multiple decommissioning#4613zymap merged 27 commits intoapache:masterfrom
zymap merged 27 commits intoapache:masterfrom
Conversation
Contributor
|
I'm curious about is there any cases that the ReadOnlyLedgerHandle cannot accept the updates from metadata server. As I understand, it should always accept the metadata updates no matter "doRecovery" or not. If the Ledger metadata updates to the Ledger which need to be recovered is not expected, we should fix the updates parts. |
Contributor
Author
Changed the implementation. |
zymap
reviewed
Jun 11, 2025
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
Outdated
Show resolved
Hide resolved
zymap
reviewed
Jul 10, 2025
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
Outdated
Show resolved
Hide resolved
zymap
approved these changes
Jul 18, 2025
aeb118b to
abb7ec5
Compare
Member
|
rerun failure checks |
14 tasks
hangc0276
reviewed
Sep 2, 2025
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
Outdated
Show resolved
Hide resolved
5b5294a to
fd48774
Compare
e125401 to
b1b453c
Compare
Contributor
Author
|
rerun failure checks |
Contributor
Author
Contributor
Author
|
rerun failure checks |
lhotari
pushed a commit
that referenced
this pull request
Nov 28, 2025
* - * checkstyle * let all ledger handle enable watcher * let all ledger handle enable watcher * fix tests * fix tests * fix tests * add test logs for debug * add test logs for debug * add test logs for debug * - * add a new param keepUpdateMetadata when open a read-only ledger handle * address comments * address comment * address comment * test CI * test CI * test CI * test CI * test CI * test CI * test CI * remove logs for CI * test CI * remove logs for CI * address comment * fix test (cherry picked from commit bae9e49)
priyanshu-ctds
pushed a commit
to datastax/bookkeeper
that referenced
this pull request
Dec 2, 2025
* - * checkstyle * let all ledger handle enable watcher * let all ledger handle enable watcher * fix tests * fix tests * fix tests * add test logs for debug * add test logs for debug * add test logs for debug * - * add a new param keepUpdateMetadata when open a read-only ledger handle * address comments * address comment * address comment * test CI * test CI * test CI * test CI * test CI * test CI * test CI * remove logs for CI * test CI * remove logs for CI * address comment * fix test (cherry picked from commit bae9e49) (cherry picked from commit b6d8b0f)
srinath-ctds
pushed a commit
to datastax/bookkeeper
that referenced
this pull request
Dec 4, 2025
* - * checkstyle * let all ledger handle enable watcher * let all ledger handle enable watcher * fix tests * fix tests * fix tests * add test logs for debug * add test logs for debug * add test logs for debug * - * add a new param keepUpdateMetadata when open a read-only ledger handle * address comments * address comment * address comment * test CI * test CI * test CI * test CI * test CI * test CI * test CI * remove logs for CI * test CI * remove logs for CI * address comment * fix test (cherry picked from commit bae9e49) (cherry picked from commit b6d8b0f)
4 tasks
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
Background
ReadOnlyLedgerHandleopened withoutdoRecovery, in other words, it has not been closed yet, its metadata in memory will be updated once modified.ReadOnlyLedgerHandleopened withdoRecovery, in other words, it has been closed or it will be closed; its metadata in memory will never be updatedIssue
testOpenedLedgerHandleStillWorkAfterDecommissioningChanges
Let Bookie
LedgerHandlealways accept the metadata updates, no matter "doRecovery" or not.Provide a new API to open a read-only ledger handle withkeepUpdateMetadata, the ledger's metadata in memory will be updated automatically after the auto-recovery component updates it.