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

Lease support for linearizability tests : address review feedback #15093

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

geetasg
Copy link

@geetasg geetasg commented Jan 12, 2023

Lease support for linearizability tests : address review feedback

Signed-off-by: Geeta Gharpure geetagh@amazon.com

…ack.

Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
@geetasg
Copy link
Author

geetasg commented Jan 12, 2023

This PR addresses some of the feedback from #15080.
Following review comments are not processed here. I will submit separate PR for these ones -

@codecov-commenter
Copy link

Codecov Report

Merging #15093 (6106912) into main (715a004) will decrease coverage by 0.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #15093      +/-   ##
==========================================
- Coverage   74.73%   74.62%   -0.12%     
==========================================
  Files         415      415              
  Lines       34341    34341              
==========================================
- Hits        25665    25627      -38     
- Misses       7046     7084      +38     
  Partials     1630     1630              
Flag Coverage Δ
all 74.62% <ø> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/etcdserver/api/rafthttp/peer_status.go 87.87% <0.00%> (-12.13%) ⬇️
server/etcdserver/api/rafthttp/peer.go 87.01% <0.00%> (-8.45%) ⬇️
pkg/netutil/netutil.go 64.00% <0.00%> (-6.41%) ⬇️
client/v3/leasing/txn.go 88.09% <0.00%> (-3.18%) ⬇️
client/v3/concurrency/election.go 79.68% <0.00%> (-2.35%) ⬇️
client/v3/watch.go 91.71% <0.00%> (-1.35%) ⬇️
pkg/schedule/schedule.go 80.45% <0.00%> (-1.15%) ⬇️
server/etcdserver/api/v3rpc/interceptor.go 73.43% <0.00%> (-1.05%) ⬇️
server/etcdserver/api/v3rpc/watch.go 85.39% <0.00%> (-0.96%) ⬇️
client/v3/retry_interceptor.go 66.36% <0.00%> (-0.90%) ⬇️
... and 10 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @geetasg

state.KeyLeases[op.Key] = op.LeaseID
state.Leases[op.LeaseID].Keys[op.Key] = leased
}
//nop here since lease wont be there
Copy link
Member

Choose a reason for hiding this comment

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

We already support multiple operations, so in theory it's possible that LeaseGrant happens before PutWithLease. But current implementation doesn't support standalone LeaseGrant, which is executed along each PutWithLease, so it's OK for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants