You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deadlock on Journal.ForceWriteThread.forceWriteRequests.put when journalQueueSize is small #2948
Describe the bug Journal.forceWriteRequests is a blocking queue, it is solely consumed by ForceWriteThread, but ForceWriteThread also put blocking when posting group force write marker.
Additional context
I think we could use BlockingQueue.offer instead of BlockingQueue.put to avoid this. When BlockingQueue.offer fails, warn in logging. Since ForceWriteThread is IO bounded(JournalChannel.forceWrite), so this change should not affect ack latency.
This deadlock may only happen when journalQueueSize is configured as considerable small, while it should be large enough for good performance in production. Shall we fix it ?
Activity
Send force write group marker non-blocking to avoid deadlock ForceWri…
Send force write group marker non-blocking to avoid deadlock ForceWri…
Fix Journal.ForceWriteThread.forceWriteRequests.put deadlock
kezhuw commentedon Mar 12, 2022
Fixed by #2962 in 1b1e937.
Fix Journal.ForceWriteThread.forceWriteRequests.put deadlock
Fix Journal.ForceWriteThread.forceWriteRequests.put deadlock