Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7D1610EFD for ; Tue, 12 Nov 2013 10:08:07 +0000 (UTC) Received: (qmail 32805 invoked by uid 500); 12 Nov 2013 10:08:01 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 32752 invoked by uid 500); 12 Nov 2013 10:07:59 -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 32669 invoked by uid 99); 12 Nov 2013 10:07:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 10:07:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of german.blanco.blanco@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 10:07:50 +0000 Received: by mail-wg0-f45.google.com with SMTP id a1so1830412wgh.12 for ; Tue, 12 Nov 2013 02:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=glz2xvBl/Q9JJHI1DIlKWKJdLhH7IkyD1NhdxpmOVqc=; b=dDm0sB/k0FRvmu/RuUZDaNQnXNmTMuzMy+RKzIdsUjFQ6s2fnnOcO2vy+EpN3Hrd55 qIMUloscMklPYgk7M149p/3sqSaOi0Gg3piP6QZtR8BaHldto9eBTQYD3CjOSrB1BxlT PDI7hCIjE7ZsVg8zWCFnAQ9ax3HngcwfSFkvCmZuaXCzMYkNG6MoxFpv8FKwo/DRp2Cb bz0Duz3f6wCIFOlXZ27u7sAJ2RSI1DfNcOM6emewJdDZIWE+k9JI0Bmdhy5E3MjPNsvV mXA2IwtKgGjA7N+/pvWYFZZowHhQxnmv8iqnv0Hd/tAJ8W1FD/jhic1mDrc/vxCVnSBe gLeQ== MIME-Version: 1.0 X-Received: by 10.194.77.167 with SMTP id t7mr26232532wjw.27.1384250849592; Tue, 12 Nov 2013 02:07:29 -0800 (PST) Received: by 10.217.103.199 with HTTP; Tue, 12 Nov 2013 02:07:29 -0800 (PST) In-Reply-To: References: Date: Tue, 12 Nov 2013 11:07:29 +0100 Message-ID: Subject: Re: Cannot start zookeeper after deleting transaction logs and snapshots From: German Blanco To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7bf0d6282b897404eaf80499 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bf0d6282b897404eaf80499 Content-Type: text/plain; charset=ISO-8859-1 Client keeps the last zxid in memory, you just need to restart the client. By the way, there is a JIRA case on this: ZOOKEEPER-832 On Tue, Nov 12, 2013 at 9:44 AM, ji yan wrote: > I have made a mistake, in the ignorance of resetting the state of zookeeper > server, by deleting all the snapshots and transaction logs on the server. > When I start the server, the log complains > > [2013-11-12 00:27:11,201] INFO Refusing session request for client / > 10.0.1.200:44939 as it has seen zxid 0x79d our last zxid is 0x0 client > must > try another server (org.apache.zookeeper.server.NIOServerCnxn) > > I understand that this is because the client has kept an offset before and > it sees that the latest offset in the log ( since all has been removed ) is > way lower than it last time saw, so it refused to connect to load stale > data. Can someone tell me how can I get myself unstuck from this situation? > I cannot find the place where the client keeps the zxid offset. > --047d7bf0d6282b897404eaf80499--