You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "void-ptr974 (via GitHub)" <gi...@apache.org> on 2026/07/16 23:54:30 UTC
[PR] Fix explicitLac race restoring deleted ledgers [bookkeeper]
void-ptr974 opened a new pull request, #4840:
URL: https://github.com/apache/bookkeeper/pull/4840
### Motivation
`LedgerMetadataIndex.setExplicitLac()` updates ledger metadata without taking the per-ledger lock used by delete. A concurrent delete can remove the ledger after `setExplicitLac()` reads it, then `setExplicitLac()` can put the ledger back into the in-memory index.
### Changes
- Serialize explicitLac updates with other per-ledger metadata changes.
- Add a regression test for concurrent explicitLac update and delete.
### Tests
- `mvn -pl bookkeeper-server -DskipTests=false -Dtest=LedgerMetadataIndexTest test`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix explicitLac race restoring deleted ledgers [bookkeeper]
Posted by "hangc0276 (via GitHub) via commits" <co...@bookkeeper.apache.org>.
hangc0276 closed pull request #4840: Fix explicitLac race restoring deleted ledgers
URL: https://github.com/apache/bookkeeper/pull/4840
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org