Song Ziyang created RATIS-1596:
----------------------------------

             Summary: Sync PurgeLog will block WriteLog
                 Key: RATIS-1596
                 URL: https://issues.apache.org/jira/browse/RATIS-1596
             Project: Ratis
          Issue Type: Improvement
            Reporter: Song Ziyang


Currently, all RaftLog IO Tasks will be handed to SegmentRaftLogWorker, 
including WriteLog & PurgeLog. Since SegmentRaftLogWorker is a single thread, a 
time consuming PurgeLog will block the subsequent WriteLog tasks, leading to 
follower unable to commit log and respond to leader's AppendEntry RPC.

PurgeLog itself will not affect other IO tasks, is it possible and it can be 
done asynchronously by another thread?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to