Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.5] *: keep tombstone if revision == compactAtRev #18474

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

fuweid
Copy link
Member

@fuweid fuweid commented Aug 20, 2024

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit ee33652)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
Before this patch, the tombstone can be deleted if its revision is equal
compacted revision. It causes that the watch subscriber won't get this
DELETE event. Based on Compact API[1], we should keep tombstone revision
if it's not less than the compaction revision.

> CompactionRequest compacts the key-value store up to a given revision.
> All superseded keys with a revision less than the compaction revision
> will be removed.

[1]: https://etcd.io/docs/latest/dev-guide/api_reference_v3/

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit bbdc941)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
@fuweid
Copy link
Member Author

fuweid commented Aug 20, 2024

/retest

@ahrtr
Copy link
Member

ahrtr commented Aug 21, 2024

cc @ivanvc @jmhbnz @serathius

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, fuweid, serathius

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr ahrtr merged commit 7749649 into etcd-io:release-3.5 Aug 21, 2024
26 checks passed
@ivanvc ivanvc mentioned this pull request Aug 22, 2024
2 tasks
aneesh1 pushed a commit to DataDog/etcd that referenced this pull request Sep 25, 2024
[3.5] *: keep tombstone if revision == compactAtRev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants