You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Martin Serrano (JIRA)" <ji...@apache.org> on 2011/04/11 19:55:05 UTC
[jira] [Commented] (ZOOKEEPER-978) ZookeeperServer does not close
zk database on shutdwon
[ https://issues.apache.org/jira/browse/ZOOKEEPER-978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018462#comment-13018462 ]
Martin Serrano commented on ZOOKEEPER-978:
------------------------------------------
I encountered the same problem. A simple patch:
{noformat}
### Eclipse Workspace Patch 1.0
#P Attivio - App
Index: src/org/apache/zookeeper/server/ZooKeeperServerMain.java
===================================================================
--- src/org/apache/zookeeper/server/ZooKeeperServerMain.java (revision 40109)
+++ src/org/apache/zookeeper/server/ZooKeeperServerMain.java (working copy)
@@ -111,6 +111,7 @@
if (zkServer.isRunning()) {
zkServer.shutdown();
}
+ ftxn.close();
} catch (InterruptedException e) {
// warn, but generally this is ok
LOG.warn("Server interrupted", e);
{noformat}
> ZookeeperServer does not close zk database on shutdwon
> ------------------------------------------------------
>
> Key: ZOOKEEPER-978
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-978
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.3.2
> Reporter: Sergei Bobovich
>
> ZookeeperServer does not close zk database on shutdown leaving log files open. Not sure if this is an intention, but looks like a possible bug to me. Database is getting closed only from QuorumPeer class.
> Hit it when executing regression tests on windows: failed to delete log files from cleanup.
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira