sijie commented on a change in pull request #889: BP-14 Implementation of 
WriteFlag.DEFERRED_SYNC on Journal
URL: https://github.com/apache/bookkeeper/pull/889#discussion_r158177244
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Journal.java
 ##########
 @@ -960,19 +974,31 @@ public void run() {
                             }
                             journalFlushWatcher.reset().start();
                             bc.flush(false);
+
+                            for (int i = 0; i < toFlush.size(); i++) {
 
 Review comment:
   any reason why you still keep the for-loop here? There should be no code 
added between line 975 and line 988, it is registering the time journal thread 
spends on flushing.
   
   I suggested you merge this for-loop with line 1005-1038, to keep branches 
handling close to each other. any reason why you didn't do that? 

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