You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/07/05 22:49:56 UTC

[GitHub] reddycharan opened a new issue #1534: Absence of flushEntriesLocationsIndex in EntryLogCompactor can lead to data corruption/loss

reddycharan opened a new issue #1534: Absence of flushEntriesLocationsIndex in EntryLogCompactor can lead to data corruption/loss 
URL: https://github.com/apache/bookkeeper/issues/1534
 
 
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   EntryLogComparator.CompactionScannerFactory.flush just calls "ledgerStorage.updateEntriesLocations(offsets);" instead of "ledgerStorage.flushEntriesLocationsIndex()". 
   
   This was broken with this change - https://github.com/apache/bookkeeper/commit/d32010f5fcc6a040a56dc8b983cc14d107cff2df#diff-ca4e05e22214ba76f892216124975514L203.
   
   Because of this EntryLogCompactor.compact method would remove compacted entryLog without updated offsets/locations getting flushed/persisted/fsynced to LedgerCache (Index/FileInfo files). This could lead to data corruption/loss if Bookie is broughtdown/killed before those updated offsets/locations are flushed/persisted/fsynced.
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services