eolivelli commented on a change in pull request #704: BOOKKEEPER-1040: Use
separate log for compaction and add transaction support
URL: https://github.com/apache/bookkeeper/pull/704#discussion_r149358169
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java
##########
@@ -335,7 +246,10 @@ public void safeRun() {
if (force) {
LOG.info("Garbage collector thread forced to perform GC before
expiry of wait time.");
}
-
+ // Recover and clean up previous state if using transactional
compaction
+ if (compactor instanceof TransactionalEntryLogCompactor) {
+ ((TransactionalEntryLogCompactor) compactor).cleanUpAndRecover();
Review comment:
It is better to add an empty default method _cleanUpAndRecover_ to
AbstractLogCompactor and override it in TransactionalEntryLogCompactor . It
would be a more "object oriented"
----------------------------------------------------------------
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