You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2013/01/08 19:38:13 UTC
[jira] [Created] (BOOKKEEPER-538) Race condition in
BookKeeper#close
Ivan Kelly created BOOKKEEPER-538:
-------------------------------------
Summary: Race condition in BookKeeper#close
Key: BOOKKEEPER-538
URL: https://issues.apache.org/jira/browse/BOOKKEEPER-538
Project: Bookkeeper
Issue Type: Bug
Reporter: Ivan Kelly
Assignee: Ivan Kelly
Fix For: 4.2.0
I've seen this with BookieAutoRecoveryTest. Basically, we interrupt and join the replicationworker thread, and then close the BookKeeper instance. This can have caused a bookkeeper operation that never finished. The executor runs it after #close has closed the BookieClient. The operation opens a connection and therefore we get a hang on releaseExternalResources().
Solution is pretty simple. We should shutdown all executors before closing the bookieClient. I'll attach a patch which does this.
--
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