[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575127#comment-13575127
 ] 

Sijie Guo commented on BOOKKEEPER-567:
--------------------------------------

this race condition is triggered when SyncThread tried to shutdown bookie 
encountering NoWritableLedgerDirException. the sequence is:

1) SyncThread -> transitionToReadOnlyMode -> triggerShutDown
2) triggerShutdown starts a new thread to shutdown bookie. SyncThread joins to 
wait shutdown thread finished.
3) Shutdown thread tried to call bookie#shutdown -> SyncThread#shutdown.
4) SyncThread#shutdown checked flushing flag and found it was in flushing 
procedure. it doesn't interrupt SyncThread and just wait.
                
> ReadOnlyBookieTest hangs on shutdown
> ------------------------------------
>
>                 Key: BOOKKEEPER-567
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-567
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Sijie Guo
>             Fix For: 4.3.0
>
>         Attachments: 27376.txt
>
>
> ReadOnlyBookieTest hangs on shutdown. It occurs when I run bookie tests.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to