yzang opened a new pull request #704: Use separate log for compaction and add 
transaction support
URL: https://github.com/apache/bookkeeper/pull/704
 
 
   
   Problem:
   Compaction might keep generating duplicated data which would cause disk full.
   This is because we don't have transactional operation for compaction. So if 
compaction
   keeps failing in the middle, bookie would end up with a lot of garbage data.
   
   Change:
   1. Introduce abstract class AbstractLogCompactor with an interface compact().
   2. Move the existing compaction logic to a separate class called 
EntryLogCompactor.
   3. Introduce transactional compaction, we can recover an incomplete 
compaction or rollback a compaction failure.
   4. Add an configuration to enable transactional compaction
   
   > ---
   > Be sure to do all of the following to help us incorporate your contribution
   > quickly and easily:
   > 
   > - [ ] Make sure the PR title is formatted like:
   >     `<Issue # or BOOKKEEPER-#>: Description of pull request`
   >     `e.g. Issue 123: Description ...`
   >     `e.g. BOOKKEEPER-1234: Description ...`
   > - [ ] Make sure tests pass via `mvn clean apache-rat:check install 
findbugs:check`.
   > - [ ] Replace `<Issue # or BOOKKEEPER-#>` in the title with the actual 
Issue/JIRA number.
   > 
   > ---
   

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