You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/07/13 07:39:31 UTC
[Bug 61290] New: Zookeeper auto purge process does not purge files
https://bz.apache.org/bugzilla/show_bug.cgi?id=61290
Bug ID: 61290
Summary: Zookeeper auto purge process does not purge files
Product: Tomcat Modules
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: jdbc-pool
Assignee: dev@tomcat.apache.org
Reporter: asteiner@varonis.com
Target Milestone: ---
Created attachment 35126
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35126&action=edit
ZK cfg and log
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.
See attached cfg and log files
Please advise.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61290] Zookeeper auto purge process does not purge files
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61290
Chuck Caldarale <ch...@unisys.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61290] Zookeeper auto purge process does not purge files
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61290
mgrigorov <mg...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from mgrigorov <mg...@apache.org> ---
This is the bug tracker for Apache Tomcat, not Apache Zookeeper.
I think you should create this report somewhere else.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org