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

Commits on Aug 20, 2024

  1. *: update tests for watch API when compact on tombstone revision

    Signed-off-by: Wei Fu <[email protected]>
    (cherry picked from commit ee33652)
    Signed-off-by: Wei Fu <[email protected]>
    fuweid committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    db701a5 View commit details
    Browse the repository at this point in the history
  2. *: keep tombstone if revision == compactAtRev

    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]>
    fuweid committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    8d98510 View commit details
    Browse the repository at this point in the history