You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by anmingyuan <an...@gmail.com> on 2012/09/05 06:27:18 UTC

Is it possible that follower still hold uncommitted data after truncating and reloading?

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

Re: Is it possible that follower still hold uncommitted data after truncating and reloading?

Posted by anmingyuan <an...@gmail.com>.
 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 <ma...@hortonworks.com>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 <an...@gmail.com> 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

Re: Is it possible that follower still hold uncommitted data after truncating and reloading?

Posted by Mahadev Konar <ma...@hortonworks.com>.
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 <an...@gmail.com> 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