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

*: keep tombstone if revision == compactAtRev #18274

Merged
merged 2 commits into from
Aug 16, 2024

Commits on Aug 7, 2024

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

    Signed-off-by: Wei Fu <fuweid89@gmail.com>
    fuweid committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    ee33652 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 <fuweid89@gmail.com>
    fuweid committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    bbdc941 View commit details
    Browse the repository at this point in the history