[ 
https://issues.apache.org/jira/browse/RATIS-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze updated RATIS-2719:
------------------------------
    Component/s: RaftLog

> 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
>          Components: RaftLog
>            Reporter: Shilun Fan
>            Assignee: Shilun Fan
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> {{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