merlimat commented on a change in pull request #826: DbLedgerStorage 
implementation
URL: https://github.com/apache/bookkeeper/pull/826#discussion_r155929191
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
 ##########
 @@ -837,7 +840,7 @@ void flushRotatedLogs() throws IOException {
         leastUnflushedLogId = flushedLogId + 1;
     }
 
-    void flush() throws IOException {
+    public synchronized void flush() throws IOException {
 
 Review comment:
   There can only be a single `flush()` happening at a point in time. That will 
not affect the `addEntry()` which is only stopped while the 2 `WriteCache` 
instances are swapped.

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