Repository navigation
P13: Port child-only recursive deletion to ZooKeeper 3.8.7 - #189
Merged
bellatrix007 merged 1 commit intoDec 3, 2026
Merged
bellatrix007 merged 1 commit into
bellatrix007 merged 1 commit into
Conversation
1 task
bellatrix007
force-pushed
the
adbansal/zk-387-p13-child-only-delete-stacked
branch
from
November 27, 2026 07:17
46b9996 to
0e01259
Compare
bellatrix007
force-pushed
the
adbansal/zk-387-p13-child-only-delete-stacked
branch
from
December 3, 2026 12:25
0e01259 to
0d8b410
Compare
Base automatically changed from
adbansal/zk-387-p12-snapshot-tools-stacked
to
li-dev/base-3.8.7
December 3, 2026 14:56
Carry LinkedIn PR159 directly, preserving source comments and test scenarios. Retain existing 3.8.7 root traversal and callback ordering, with required Jupiter test adaptations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bellatrix007
force-pushed
the
adbansal/zk-387-p13-child-only-delete-stacked
branch
from
December 3, 2026 14:56
0d8b410 to
62c5b63
Compare
bellatrix007
deleted the
adbansal/zk-387-p13-child-only-delete-stacked
branch
December 3, 2026 16:38
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 #159 from
branch-3.6to ZooKeeper 3.8.7, stacked on #188.Add
ZKUtil.deleteChildrenRecursiveanddeleteall /parent -c [-b batchSize]to delete descendants while retaining the parent.
/; support a chrooted root. Check the retained parent'schild count afterward and report unsuccessful
-coperations through anonzero CLI exit.
ordinary-root traversal fix and callback failure-before-release ordering.
Tests
On
46b9996c:All 20 source-added test names are retained. Required test adaptations use
the existing Jupiter setup and preserve the target's already-fixed ordinary
root behavior. Coverage includes parent retention, batch boundaries, large
child lists, root/chroot safety and concurrent child creation.
Earlier stack CI has unresolved connection/election-test failures (#184,
#186); this PR does not fix them. Deployed/mixed-version qualification remains
separate.
Changes that Break Backward Compatibility (Optional)
Without
-c, existing 3.8.7 deletion behavior is unchanged. The new optionrequires a server supporting the fork's paginated
getChildren; the client'sjute.maxbuffermust be at least the server's setting.The operation is non-atomic and lists the subtree in client memory before
deleting. Quiesce writers and size the client heap appropriately; the final
child-count check is not a lock.
Documentation (Optional)
Carry the source
deleteallusage, example and operational caveats intozookeeperCLI.md, retaining newer unrelated command help.🤖 Generated with GitHub Copilot CLI