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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to