Github user zhouxinyu commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/20#discussion_r94045317
  
    --- Diff: store/src/main/java/org/apache/rocketmq/store/CommitLog.java ---
    @@ -964,9 +964,11 @@ public void run() {
                 boolean result = false;
                 for (int i = 0; i < RETRY_TIMES_OVER && !result; i++) {
    --- End diff --
    
    Consider `result = flush(0)`, the false result means there may be more data 
need to flush, so retry. Otherwise, the true result means all data are flushed, 
the broker can exit safely.
    
    So if you change `result`, also please change this `for` loop. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to