Repository navigation
Conversation
scanhex12
marked this pull request as draft
April 12, 2025 17:40
scanhex12
marked this pull request as ready for review
April 12, 2025 20:06
Contributor
Contributor
|
Dear @antonio2368, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
Contributor
|
Dear @mstetsyuk, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
mstetsyuk
requested changes
Oct 27, 2025
mstetsyuk
left a comment
Member
There was a problem hiding this comment.
This approach has a consistency issue.
If replicas just delete nodes locally based on their local clock without running consensus, they may disagree on the state.
Here's an example:
- Replica A (clock +1s): deletes node
/my/nodeat T - Replica B (correct clock):
/my/nodestill exists at T - Replica C (correct clock):
/my/nodestill exists at T - Client tries to create
/my/nodeat T - Result: A says "OK", while B and C say "already exists"
I looked into the code and, apparently, ZooKeeper puts delete operations into the replication log rather than just removing them locally: one, two, three. Let's do the same, WDYT?
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Added command CreateTTL from ZooKeeper (https://zookeeper.apache.org/doc/r3.5.4-beta/zookeeperProgrammers.html#TTL+Nodes)
A node with TTL can be deleted in two ways. The first is the garbage collector - it uses a background thread to delete nodes after a certain time. But not all nodes are stored in RAM - such nodes are deleted lazily
Documentation entry for user-facing changes