[ https://issues.apache.org/jira/browse/ZOOKEEPER-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054265#comment-13054265 ]
Laxman commented on ZOOKEEPER-1107: ----------------------------------- Snap and logs clean is a nice to have feature as part of zookeeper rather as a cron. I've considered the following points apart from the one mentioned by Jun. a) Cron jobs are difficult to debug in case of any issue. [Yet another process, Logs - Just my personal view] b) I would like to run cron job only when zookeeper is running. It will be difficult to manage two different processes [from an Operation Management perspective]. c) bq. don't cleanup unless the operator explicitly requests We can still maintain this by making it configurable. Correct me if my understanding is wrong. Following is the implementation I've in mind. a) Number of snapshots to retain and b) A purge task will be spawned at the startup. I can submit a patch based on suggestions. > automating log and snapshot cleaning > ------------------------------------ > > Key: ZOOKEEPER-1107 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1107 > Project: ZooKeeper > Issue Type: Improvement > Components: server > Affects Versions: 3.3.3 > Reporter: Jun Rao > > I like to have ZK itself manage the amount of snapshots and logs kept, > instead of relying on the PurgeTxnLog utility. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira