Jitendra Nath Pandey created RATIS-139:
------------------------------------------

             Summary: RaftLogWorker should use two task queues. 
                 Key: RATIS-139
                 URL: https://issues.apache.org/jira/browse/RATIS-139
             Project: Ratis
          Issue Type: Bug
            Reporter: Jitendra Nath Pandey


{code}
  private boolean shouldFlush() {
    return pendingFlushNum >= forceSyncNum ||
        (pendingFlushNum > 0 && queue.isEmpty());
  }
{code}

It is possible that queue is often non-empty, but not full to trigger force 
sync. We could use two queues similar to two buffer approach in HDFS edit logs.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to