zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maoling (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ZOOKEEPER-2844) Zookeeper auto purge process does not purge files
Date Sat, 06 Oct 2018 10:45:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16640676#comment-16640676
] 

maoling edited comment on ZOOKEEPER-2844 at 10/6/18 10:44 AM:
--------------------------------------------------------------

[~asteiner@varonis.com],[~timkrueger]
Could you plz provide some more clues about what happened in your windows server?
Do you have any advance?


was (Author: maoling):
[~asteiner@varonis.com][~timkrueger]
Could you plz provide some more clues?

> Zookeeper auto purge process does not purge files
> -------------------------------------------------
>
>                 Key: ZOOKEEPER-2844
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2844
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.4.6
>         Environment: Windows Server 2008 R2
>            Reporter: Avi Steiner
>            Priority: Major
>         Attachments: ZK.zip
>
>
> I'm using Zookeeper 3.4.6
>     
> The ZK log data folder keeps growing with transaction logs files (log.*).
>     
> I set the following in zoo.cfg:
> autopurge.purgeInterval=1
> autopurge.snapRetainCount=3
> dataDir=..\\data
>     
> Per ZK log, it reads those parameters:
>     
> 2017-07-13 10:36:21,266 [myid:] - INFO  [main:DatadirCleanupManager@78] - autopurge.snapRetainCount
set to 3
> 2017-07-13 10:36:21,266 [myid:] - INFO  [main:DatadirCleanupManager@79] - autopurge.purgeInterval
set to 1
>     
> It also says that cleanup process is running:
>     
> 2017-07-13 10:36:21,266 [myid:] - INFO  [PurgeTask:DatadirCleanupManager$PurgeTask@138]
- Purge task started.
> 2017-07-13 10:36:21,297 [myid:] - INFO  [PurgeTask:DatadirCleanupManager$PurgeTask@144]
- Purge task completed.
>     
> But actually nothing is deleted.
> Every service restart, a new file is created.
>     
> The only parameter I managed to change is preAllocSize, which means the minimum size
per file. The default is 64MB. I changed it to 10KB only for testing, and I swa the effect
as expected: new files were created with 10KB.
> I also tried to create a batch file that will run the following:
> java -cp zookeeper-3.4.6.jar;lib/slf4j-api-1.6.1.jar;lib/slf4j-log4j12-1.6.1.jar;lib/log4j-1.2.16.jar;conf
org.apache.zookeeper.server.PurgeTxnLog .\data -n 3
> But it still doesn't do the job.
> Please advise.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message