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.4] *: keep tombstone if revision == compactAtRev #18475

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

fuweid
Copy link
Member

@fuweid fuweid commented Aug 20, 2024

Backport of #18274

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.


NOTE: release-3.4 doesn't compute hash value for compaction.

Signed-off-by: Wei Fu <[email protected]>
(cherry picked from commit ee33652)
Signed-off-by: Wei Fu <[email protected]>
@ahrtr
Copy link
Member

ahrtr commented Aug 20, 2024

Please resolve the linux-amd64-fmt failures

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 <[email protected]>
(cherry picked from commit bbdc941)
Signed-off-by: Wei Fu <[email protected]>
@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 43077f4 into etcd-io:release-3.4 Aug 21, 2024
18 checks passed
@ivanvc ivanvc mentioned this pull request Aug 22, 2024
1 task
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