Repository navigation
P11: Port optional leader startup snapshots to ZooKeeper 3.8.7 - #187
Merged
bellatrix007 merged 3 commits intoDec 3, 2026
Merged
bellatrix007 merged 3 commits into
bellatrix007 merged 3 commits into
Conversation
1 task
bellatrix007
force-pushed
the
adbansal/zk-387-p11-startup-snapshot-stacked
branch
from
November 27, 2026 07:17
8350a3c to
4eb22a8
Compare
bellatrix007
force-pushed
the
adbansal/zk-387-p11-startup-snapshot-stacked
branch
from
December 3, 2026 05:36
4eb22a8 to
57f7f89
Compare
bellatrix007
force-pushed
the
adbansal/zk-387-p11-startup-snapshot-stacked
branch
from
December 3, 2026 09:04
57f7f89 to
a9be9af
Compare
Base automatically changed from
adbansal/zk-387-p10-acl-dry-run
to
li-dev/base-3.8.7
December 3, 2026 12:13
Keep the default startup snapshot while allowing quorum peers to skip the final leader snapshot. Preserve database recovery, session cleanup and learner persistence, with focused policy and synchronization coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The serialized tree contains node metadata, not the database's last processed zxid. Check the DIFF/SNAP envelope zxid and the snapshot node's creation and modification zxids while retaining data, ACL, quorum formation and recovery assertions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retain stream-based cleanup and count each cleaned session. Cover zero and multiple dead sessions, live-session preservation and count reset between loads. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bellatrix007
force-pushed
the
adbansal/zk-387-p11-startup-snapshot-stacked
branch
from
December 3, 2026 12:13
a9be9af to
075e148
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Forward-port #140 from
branch-3.6to ZooKeeper 3.8.7, stacked on #186.This preserves LinkedIn's opt-in policy; it is not a verbatim Apache backport.
Adds
zookeeper.leaderElection.skipStartupSnapshot(default false).When enabled, skips the final leader-startup snapshot, avoiding that
serialization step during quorum formation. Recovery, session cleanup,
standalone startup and other snapshot paths remain unchanged.
Retains Apache 3.8.7's existing stream-based session cleanup and restores
branch-3.6's skip-log diagnostics: zxid and dead-session count.Tests
Updated
ZooKeeperServerTest,QuorumPeerTestandZab1_0Testforconfiguration, snapshot policy, DIFF/SNAP synchronization and recovered
data/ACL/session state.
Local results on
bf369e4b:Logging follow-up
8350a3cfadditionally passed all 17ZooKeeperServerTestcases, RAT, Checkstyle including tests and SpotBugs on Java 11.
Known base CI failure: P10's Java 11 job
failed
QuorumPeerMainTest.testLeaderOutOfView: expectedLOOKING, observedFOLLOWING. A duplicate CI job and a targeted local run passed; the causeremains unresolved and is not fixed by this PR.
Linux/native, mixed-version, performance and quorum-backed backup-failover
qualification remain outstanding.
Changes that Break Backward Compatibility (Optional)
QuorumPeeris constructed; the explicitsetter remains available.
dead-session cleanup until a later snapshot is taken.
branch-3.6, leader startup callsloadData(boolean). Subclassesoverriding only
loadData()will not intercept that call.Documentation (Optional)
Updated
zookeeperAdmin.mdwith configuration and recovery trade-offs.🤖 Generated with GitHub Copilot CLI