zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From revans2 <...@git.apache.org>
Subject [GitHub] zookeeper pull request #157: ZOOKEEPER-2678: Discovery and Sync can take a v...
Date Mon, 30 Jan 2017 14:24:35 GMT
Github user revans2 commented on a diff in the pull request:

    --- Diff: src/java/main/org/apache/zookeeper/server/quorum/Learner.java ---
    @@ -364,10 +367,12 @@ else if (qp.getType() == Leader.SNAP) {
                 long lastQueued = 0;
    -            // in V1.0 we take a snapshot when we get the NEWLEADER message, but in pre
    +            // in Zab V1.0 (ZK 3.4+) we might take a snapshot when we get the NEWLEADER
message, but in pre V1.0
                 // we take the snapshot at the UPDATE, since V1.0 also gets the UPDATE (after
                 // we need to make sure that we don't take the snapshot twice.
    -            boolean snapshotTaken = false;
    +            boolean isPreZAB1_0 = true;
    +            //If we are not going to take the snapshot be sure the edits are not applied
in memory
    +            boolean writeToEditLog = !snapshotNeeded;
    --- End diff --
    Sorry about that I am still a bit new at the internal terminology.  I will update it.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message