Shilun Fan created RATIS-2719:
---------------------------------

             Summary: SegmentedRaftLog.close may deadlock with the cache 
eviction thread
                 Key: RATIS-2719
                 URL: https://issues.apache.org/jira/browse/RATIS-2719
             Project: Ratis
          Issue Type: Bug
            Reporter: Shilun Fan
            Assignee: Shilun Fan


{{SegmentedRaftLog.close() may deadlock with the background cache eviction 
thread.}}

{{Currently, close() acquires the Raft log write lock before calling
cacheEviction.close(). }}

{{That method interrupts the eviction thread
and waits for it to terminate using Thread.join().}}

{{Meanwhile, checkAndEvictCache() also needs the same write lock.}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to