yzang 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_r149477444
##########
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:
That's a good idea, fixed.
----------------------------------------------------------------
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