You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "David Foregger (JIRA)" <ji...@apache.org> on 2016/02/05 18:09:39 UTC

[jira] [Created] (ZOOKEEPER-2363) DatadirCleanupManager never created by ZookeeperServerMain

David Foregger created ZOOKEEPER-2363:
-----------------------------------------

             Summary: DatadirCleanupManager never created by ZookeeperServerMain
                 Key: ZOOKEEPER-2363
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2363
             Project: ZooKeeper
          Issue Type: Bug
    Affects Versions: 3.4.0
            Reporter: David Foregger


h4. Background
ZOOKEEPER-1107 introduced a DatadirCleanupManager to automatically purge snapshots. This can be configured using autopurge.snapRetainCount and autopurge.purgeInterval. This is documented [here|http://zookeeper.apache.org/doc/r3.4.5/zookeeperAdmin.html#Ongoing+Data+Directory+Cleanup] and [there|http://zookeeper.apache.org/doc/r3.4.5/zookeeperAdmin.html#sc_advancedConfiguration].
h4. Symptoms
Autopurging does not work when running a standalone ZooKeeperServer. The DatadirCleanupManager is started by the QuorumPeerMain, but there is no similar setup ZooKeeperServerMain. ServerConfig does not hold autopurge properties.
h4. Expected Behavior
Starting a standalone zookeeper server should enable autopurging with the same behavior as a quorum server. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)