You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Sijie Guo (JIRA)" <ji...@apache.org> on 2013/02/09 10:25:12 UTC

[jira] [Commented] (BOOKKEEPER-567) ReadOnlyBookieTest hangs on shutdown

    [ 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