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

Robustness duplicated puts 2 #18904

Merged
merged 4 commits into from
Nov 17, 2024

Conversation

serathius
Copy link
Member

@serathius serathius commented Nov 16, 2024

@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.69%. Comparing base (cfdd69f) to head (1fffd2b).

Current head 1fffd2b differs from pull request most recent head 6d00e7b

Please upload reports for the commit 6d00e7b to get more accurate results.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

see 19 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #18904      +/-   ##
==========================================
+ Coverage   68.68%   68.69%   +0.01%     
==========================================
  Files         420      420              
  Lines       35558    35558              
==========================================
+ Hits        24424    24428       +4     
+ Misses       9704     9699       -5     
- Partials     1430     1431       +1     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cfdd69f...6d00e7b. Read the comment docs.

case model.RangeOperation:
case model.PutOperation:
kv := keyValue{Key: event.Key, Value: event.Value}
requestRevision[kv] = event.Revision
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it required to check revision should not be decreased here for same key/value? The validateOrdered already covers that. It will be good to add some comments here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There can only be one revision assigned to a unique write, we only patch unique writes like put, case you described should never happen. We do that for return time because its just estimation it based on different sources, like client response time, watch events and following write.

@serathius
Copy link
Member Author

serathius commented Nov 17, 2024

ping @fuweid @jmhbnz

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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

@serathius serathius merged commit ee789c9 into etcd-io:main Nov 17, 2024
32 checks passed
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