You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by WangKe <wa...@outlook.com> on 2015/02/04 06:50:24 UTC

autopurge does not work

Recently I want to use autopurge to remove the old data logs. But I found it did not work. I can see "Purge task started" and "Purge task completed" in the log, but no data log is removed.So I checked the source code and added some logs, I found that  in the function PurgeTxnLog.purge() , all the ".log" files were added into the a list which contains excluded files, no file was removed. One reason maybe is that in the data dir no snapshot file exists often, so the current zxid is -1,  all zxid of ".log" files is larger than -1, no file should be removed.  However, Even Sometimes there's several snapshot files in the data dir, after some steps in function FileTxnLog.getLogFiles(), all the ".log" files will be excluded. It seems autopurge never worked.Is there any problem with my understanding?  What should I do to make it work?  

thanks
wangke1020 		 	   		  

Re: autopurge does not work

Posted by Flavio Junqueira <fp...@yahoo.com.INVALID>.
I'm not aware of autopurge not working, but I must say that I didn't completely understand your description. It might be that you're referring to one particular case in which it doesn't work, which is a bug that we should try to fix.
If you want to report a bug, the best way is to create a jira and report your problem. Even better if you want to suggest a fix to the problem. Also, please let us know which version you're using.
-Flavio