Hi,

On 26 August 2014 11:22, Alvaro Gareppe <[email protected]> wrote:

> I'm writing a simple java program that calls the PurgeTxnLog.purge to use
> it to periodically clean the server logs.
>
> But with basic tests noting seams to be deleted. Btw, I'm running this in a
> Windows environment
>
> I'm just calling like this:
>    PurgeTxnLog.purge(new File(dataPathLocation, new File(dataPathLocation),
> 3);
>
> (I'm using the same cause the data and logs are located in the same folder)
>
> version 3.4.6
>

Ooi, why not use autopurge.snapRetainCount and autopurge.purgeInterval:

http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#Ongoing+Data+Directory+Cleanup

?


-rgs

Reply via email to