lhotari commented on code in PR #4038:
URL: https://github.com/apache/bookkeeper/pull/4038#discussion_r1478009221
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLoggerAllocator.java:
##########
@@ -127,10 +136,16 @@ BufferedLogChannel createNewLog(File dirForNextEntryLog)
throws IOException {
BufferedLogChannel createNewLogForCompaction(File dirForNextEntryLog)
throws IOException {
synchronized (createCompactionLogLock) {
- return allocateNewLog(dirForNextEntryLog, COMPACTING_SUFFIX);
+ BufferedLogChannel bc = allocateNewLog(dirForNextEntryLog,
COMPACTING_SUFFIX);
+ writingCompactingLogId = bc.getLogId();
+ return bc;
}
}
+ void clearCompactingLogId() {
+ writingCompactingLogId = -1;
Review Comment:
> No need this, the `createNewLogForCompaction` and `clearCompactingLogId`
are serial.
What do you mean?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]