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 53865D844 for ; Wed, 5 Sep 2012 07:25:10 +0000 (UTC) Received: (qmail 1510 invoked by uid 500); 5 Sep 2012 07:25:09 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 724 invoked by uid 500); 5 Sep 2012 07:25:03 -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 692 invoked by uid 99); 5 Sep 2012 07:25:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 07:25:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anmingyuan@gmail.com designates 74.125.83.42 as permitted sender) Received: from [74.125.83.42] (HELO mail-ee0-f42.google.com) (74.125.83.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 07:24:57 +0000 Received: by eekb15 with SMTP id b15so54618eek.15 for ; Wed, 05 Sep 2012 00:24:36 -0700 (PDT) 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=cuAoCOvt6FYhB+cJjWcEke/lAv5O6/rIcp7YFAsI9DI=; b=wbLdgVradjaIgWOh8UqluAPS9WbNCPWv9QbE0DVoHeblUJzTNfBH+EN3dg93KJpg9f YT0mf/5aC/TJq0vgQ8Gzu9Z8Bh/MaXFFk2Q6BbI5mXBtgxoYKmwukeKSO6z11nrVO9xL yNA9QEXcZf8czljdTmcl0kwQdHdCR/D2dXMjU/vtg9oijciw7r0Ay7HVp7bfyvZLAq4/ /2d0ze8/g8h9Gi+dcsU2oX1KKOUjk3e3Al/YKgLKLgSCgger5B63tmX+2+wdFvYD/0bN uirCGdZY6NbLuRRLAWxzPQ7kdKVThYZWQ6h/Vdt8ZDZCQdY+FH9faTe3oH/uBvCaBh95 091A== MIME-Version: 1.0 Received: by 10.14.207.9 with SMTP id m9mr29232285eeo.5.1346829876070; Wed, 05 Sep 2012 00:24:36 -0700 (PDT) Received: by 10.14.0.130 with HTTP; Wed, 5 Sep 2012 00:24:36 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 Sep 2012 15:24:36 +0800 Message-ID: Subject: Re: Is it possible that follower still hold uncommitted data after truncating and reloading? From: anmingyuan To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7b33dc305609d904c8ef4472 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b33dc305609d904c8ef4472 Content-Type: text/plain; charset=ISO-8859-1 Mahadev, Applying https://issues.apache.org/jira/browse/ZOOKEEPER-874 to 3.3.4 fails QuorumPeerMainTest .testHighestZxidJoinLate. Seems that truncate logic causes failure. On Wed, Sep 5, 2012 at 2:15 PM, Mahadev Konar wrote: > Mingyuan, > No that should not happen. In case that happens its a bug. > > thanks > mahadev > > On Tue, Sep 4, 2012 at 9:27 PM, anmingyuan wrote: > > Is it possible that follower still hold uncommitted data after truncating > > and reloading? > > ZKDatabase.loadDataBase() loads data from the most recent snapshot, but > > FileTxnLog.truncate() doesn't delete the snapshot files corresponding to > > the deleted log files. > > > > > > -- > > With regards, > > Mingyuan AN > -- With regards, Mingyuan AN --047d7b33dc305609d904c8ef4472--