Repository navigation
P02: Port backup and restore to ZooKeeper 3.8.7 - #175
Conversation
|
[IMP] Strict
|
|
[IMP] Gap to flag: ZOOKEEPER-4276 ("Serving only with secureClientPort fails") has been in the fork since #120 in April 2024. It is missing from every port PR (#173, #174, #175, #177, #180, #181), and neither Apache 3.8.7 nor 3.8.8 includes it. The whole backport is missing, not just
|
Confirmed this, there is no incorrect usage of these flags for Linkedin purpose, so nothing should break. |
This is covered by P07 (#183), which ports the fork’s secure-client-only support, including the extended |
P02 stacked on PR #174. Reconcile PR #129 with final branch-3.6 at 9d24593. Preserve target persistence APIs and CLI factory registration; migrate carried backup tests to Jupiter without weakening assertions. Fix compressed snapshot zxid-range parsing exposed by the six-node quorum/observer/backup restore test. Preserve backup defaults and the source storage/restore contract; no unrelated feature groups are included. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Accept the first transaction at zxid 1 for the empty snapshot at zxid 0. Exercise this boundary deterministically and retain rejection when transaction 1 is missing; draw successful restore points only from actual positive transaction zxids. Preserve the existing coverage checks for later snapshots. Include the upstream MIT license texts for the checker-qual and animal-sniffer annotation jars bundled by the restored Guava dependency. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
74d6963 to
8ff8ddf
Compare
arkmish
left a comment
There was a problem hiding this comment.
LGTM. Thanks for addressing the comments.
Description
Port LinkedIn backup/restore to ZooKeeper 3.8.7, stacked on #174. The 43 files / 7,561 added lines are primarily existing fork code: #129 is the seed, reconciled with
branch-3.6at9d245933.getDataLogDir(), registerRESTOREthroughCommandFactory, and omit the unused duplicate storage-provider interface.27.0.1-jre; package MIT notices for its checker-qual and animal-sniffer annotation dependencies.Two new runtime fixes beyond fork parity:
.gz/.snappysuffixes before zxid parsing and reuse that parser for backup metadata. Previously, valid compressed names produced invalid ranges and restore failures.0to use logs starting at1, while still rejecting a missing first transaction.Tests
Local code review completed
Migrate six carried test classes to Jupiter; add seven config/CLI/range-validation checks and strengthen first-transaction and compressed-backup assertions.
Java 8/11/17: selected Maven
clean verifyruns on74d69630; 74 tests per JDK (47 backup/adaptation + 27 baseline), 222 passing executions, no failures/errors/skips or automatic retries.Six-JVM Java 11 integration: 3 voters, 2 observers and a backup-enabled observer; failover/rejoin, compressed snapshots plus log/timetable backup, checkpoint restore, and verification of 253 persistent znodes and ACLs on a fresh server.
Java 11: assembly, RAT, Checkstyle and SpotBugs passed; packaged MIT notices verified.
Both runtime fixes have failing-before/passing-after evidence. The integration harness is local, not a new CI job. Linux deployment, GPFS/NFS, mixed-version rollout/rollback and soak remain unqualified. The inherited SpotBugs scanner cannot analyze the Java 17 runtime; Java 17 runtime tests passed.
Changes that Break Backward Compatibility (Optional)
No intended incompatible API/configuration change; backup remains disabled by default. The fixes do not repair malformed backup filenames produced by older code.
Documentation (Optional)
No wiki changes.
🤖 Generated with GitHub Copilot CLI