sijie opened a new issue #659: Checkpoint logic is broken in SortedLedgerStorage
URL: https://github.com/apache/bookkeeper/issues/659
 
 
   *Problem*
   
   Currently SortedLedgerStorage doesn't maintain any checkpoint related 
information. It shares the same `checkpoint holder` with 
InterleavedLedgerStorage. The checkpoint holder is updated when an entry log 
file is rotated. Unfortunately this can happen when compaction adds entries in 
the entry log files causing entry log file rotated and SortedLedgerStorage 
isn't aware of this. This can cause data not durably persisted in ledger 
storage before advancing journal checkpoint marker.
   
   *Discussion*
   
   The detail discussion can be found at:
   
   
http://mail-archives.apache.org/mod_mbox/bookkeeper-dev/201710.mbox/%3CCAAFz1KPbOZjSnmpHDt%2BdeU7FPQvv__XFPc_a69zhd31TuSFJ_g%40mail.gmail.com%3E
   
   
http://mail-archives.apache.org/mod_mbox/bookkeeper-dev/201710.mbox/%3CCAO2yDyZ-_3N6_YMGuG%3DG0k3Q-omDRxshBmegv%3DSMLb7dmsiBmQ%40mail.gmail.com%3E
   
   *Solutions*
   
   ```
      1. Use the approach that I used before (as in the old commits at
      twitter?s branch). Ledger storage is responsible for instantiating the
      checkpoints.
      2. Sorted ledger storage maintains a separate checkpoint marker (can be
      using the checkpoint markers in memtables).
      3. Compaction avoids advancing checkpoint holder in entry log files.
      This can be covered by
      
https://cwiki.apache.org/confluence/display/BOOKKEEPER/BP-6+-+Use+separate+log+for+compaction
   ```
   
   

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


With regards,
Apache Git Services

Reply via email to