[
https://issues.apache.org/jira/browse/ZOOKEEPER-2363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15200452#comment-15200452
]
Biju Nair commented on ZOOKEEPER-2363:
--------------------------------------
[~dforegger] Do you use a ``zoo.cfg`` file to start the standalone ZK. If so
could you please share the same. Even though "ServerConfig" doesn't hold auto
purge properties, [QuorumPeerMain seem to start the purge task
here|https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerMain.java#L114-L117].
> 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)