You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "hangc0276 (via GitHub)" <gi...@apache.org> on 2023/04/03 13:38:19 UTC

[GitHub] [bookkeeper] hangc0276 opened a new pull request, #3904: Skip sync the RocksDB when no changes

hangc0276 opened a new pull request, #3904:
URL: https://github.com/apache/bookkeeper/pull/3904

   ### Motivation
   For the `LedgerMetadataIndex#removeDeletedLedgers` and `LedgerMetadataIndex#flush`, it will call ledgersDB sync whether the ledgersDB has changed or not. We can skip the sync call when nothing changed in the ledgersDB.
   
   ### Changes
   - Check whether pendingLedgersUpdates is empty in `flush()` and `pendingDeletedLedgers` is empty in removeDeletedLedgers
   - Move the `key.recycle()` in finally to cover keys leak when the ledgersDB operations throw an exception.


-- 
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] Skip sync the RocksDB when no changes [bookkeeper]

Posted by "hangc0276 (via GitHub)" <gi...@apache.org>.
hangc0276 merged PR #3904:
URL: https://github.com/apache/bookkeeper/pull/3904


-- 
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] Skip sync the RocksDB when no changes [bookkeeper]

Posted by "zymap (via GitHub)" <gi...@apache.org>.
zymap commented on PR #3904:
URL: https://github.com/apache/bookkeeper/pull/3904#issuecomment-1837761945

   @hangc0276 Do you want to update this PR to merge?


-- 
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