From user-return-11576-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Wed Jul 18 13:04:22 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 B9664180636 for ; Wed, 18 Jul 2018 13:04:21 +0200 (CEST) Received: (qmail 19932 invoked by uid 500); 18 Jul 2018 11:04:20 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 19920 invoked by uid 99); 18 Jul 2018 11:04:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2018 11:04:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 76E20C00D3 for ; Wed, 18 Jul 2018 11:04:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.869 X-Spam-Level: * X-Spam-Status: No, score=1.869 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8SOff__tVV2t for ; Wed, 18 Jul 2018 11:04:17 +0000 (UTC) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DDAB05F43C for ; Wed, 18 Jul 2018 11:04:16 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id k3-v6so1847584pgq.5 for ; Wed, 18 Jul 2018 04:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=g6anz7FABiMHfP8re/crno4lvSUddt7A8Cs43m1FIGY=; b=HisDz5HyWg480Doqpp+8Rcy1KoCtvM1qJOPiuBfVHYjBj1MH0NRIhZ0h4j/ennuVaY Cz1ZvEt6z887dLcvelfjjurGl5YbbFtPYh3QksmcxiQ4wQ+mLhA4LM5bLeBXyPttOboP W9wbrh3mh4/jIxxmzi0PEVPzZFPkMINXTNd4Z1wW8bxqS+XnQwccfCb2pTXXdBiItrg+ 7z3c+i1xDqJ4K+1um6rOpLsgvo2lKF/l9CrkGRb1WrwJ2V4fhVDBisRzsm94+6Ge6nys N5G6iG92iAz68al0UjBp+sePeeRoZqixVcsMQKmqs61uV3ypV4//OypJkmZDa9c+gODw FyqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=g6anz7FABiMHfP8re/crno4lvSUddt7A8Cs43m1FIGY=; b=MaZYyTGX8VWqwIV2M21QwcyChwql0uPgK85l0Dvw7ouj4hvikpLBbOqxVJEufuGQBf APnLPqp18W/Xq2MMLlIowdRMGUkh3KY6LKUdN3m4g1Y9pT987+GymjW22MGmG11KP09H hYkuywJH2mQCVYKqgso07n8OvAQfwyijdUsSg7Ee4IdJNY5DEtlnlXi9R4OVJ1CwBBGD ZMDAHH1UUnE1wzaU/PWm2cuuCCV/RCl5WR9QsqN07/B0UX4kaom0m+XsLl7npbDrmqvO LV0SarLyubM8EpH+IXTzREsVSmbHrTU4PCEFvqWFaY5NrcBow6jRVoro1IXVDH44MB6f wpJQ== X-Gm-Message-State: AOUpUlEWRrXgz48iemNj4VV3zmUUus96CykwzObCJsa2BBvfCJxDRZ1r XvSCaUW5le+RttfWUCB7rb09tYe2sgxe7aq6H74B1g== X-Google-Smtp-Source: AAOMgpffhotrRo7ulEV27Pe8wHBBYLcnaYTbvejAgcajVHsArC+gCvnV6OkrwMx5R2cXmtNafnjsa6liM0CCAjTqChw= X-Received: by 2002:a63:291:: with SMTP id 139-v6mr5380831pgc.365.1531911855272; Wed, 18 Jul 2018 04:04:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jostein Elvaker Haande Date: Wed, 18 Jul 2018 13:04:06 +0200 Message-ID: Subject: Re: Problem with ZK log files and snapshots To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="000000000000f5f81405714405c8" --000000000000f5f81405714405c8 Content-Type: text/plain; charset="UTF-8" On Wed, 18 Jul 2018 at 12:28, Norbert Kalmar wrote: > Hi, > > You should use PurgeTxnLog as per > https://zookeeper.apache.org/doc/r3.4.8/zookeeperAdmin.html#sc_maintenance > It needs 3 parameters: txn log dir, smapshot dir and number of snaps/log to > keep (3 minimum!) > Hi, I'm well aware of PurgeTxnLog (as per my initial post), however the problem I'm facing is that there are not enough transactions in the existing log files to generate a snapshot. And seeing as no snapshots are created, PurgeTxnLog has nothing to clean up. I've decreased the 'snapCount' on a few instances, however lowering this count does nothing for the existing transaction logs it seems, as no snapshots are created after a restart of ZooKeeper. -- Yours sincerely Jostein Elvaker Haande "A free society is a society where it is safe to be unpopular" - Adlai Stevenson http://tolecnal.net -- tolecnal at tolecnal dot net --000000000000f5f81405714405c8--