From dev-return-72930-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Mon Sep 10 05:30:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3E5AE180671 for ; Mon, 10 Sep 2018 05:30:03 +0200 (CEST) Received: (qmail 60028 invoked by uid 500); 10 Sep 2018 03:30:02 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 60017 invoked by uid 99); 10 Sep 2018 03:30:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2018 03:30:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 896D4CC56B for ; Mon, 10 Sep 2018 03:30:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Z7H0pJMcVsNr for ; Mon, 10 Sep 2018 03:30:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C04315F3B2 for ; Mon, 10 Sep 2018 03:30:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 59F63E0360 for ; Mon, 10 Sep 2018 03:30:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1CB8C23F98 for ; Mon, 10 Sep 2018 03:30:00 +0000 (UTC) Date: Mon, 10 Sep 2018 03:30:00 +0000 (UTC) From: "maoling (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2844) Zookeeper auto purge process does not purge files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16608678#comment-16608678 ] maoling commented on ZOOKEEPER-2844: ------------------------------------ [~andschwa] it's may be a issue about windows server,Could you plz take a look at this? > 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)