-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
kv: add shared, replicated, and shared-replicated locks to TestEvaluateBatch #111433
kv: add shared, replicated, and shared-replicated locks to TestEvaluateBatch #111433
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)
pkg/kv/kvserver/replica_evaluate_test.go
line 321 at r1 (raw file):
setup: func(t *testing.T, d *data) { writeABCDEFAt(t, d, ts.Prev()) scanA := getArgsString("a")
nit: Should these say "getA" and "getG", here and elsewhere?
It's a bit weird because the verification method is called "verifyScanResult" as well, and then switches over Get/Scan/ReverseScan
requests -- should we rename the thing to "verifyReadResult" instead?
pkg/kv/kvserver/replica_evaluate_test.go
line 384 at r1 (raw file):
{ // Same as above, but with replicated shared locks. name: "gets with key locking (exclusive, replicated)",
"(shared, replicated)"
…teBatch Informs cockroachdb#91545. Informs cockroachdb#100193. This commit extends TestEvaluateBatch to include shared, replicated, and shared-replicated lock acquisition using Get, Scan, and ReverseScan requests. Release note: None
This commit updates the naming of a few variables and the verifyScanResult function to better reflect the use of GetRequests in the test. Epic: None Release note: None
1a6beba
to
6a3f134
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TFTR!
bors r+
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @arulajmani)
pkg/kv/kvserver/replica_evaluate_test.go
line 321 at r1 (raw file):
Previously, arulajmani (Arul Ajmani) wrote…
nit: Should these say "getA" and "getG", here and elsewhere?
It's a bit weird because the verification method is called "verifyScanResult" as well, and then switches over
Get/Scan/ReverseScan
requests -- should we rename the thing to "verifyReadResult" instead?
Done for both.
pkg/kv/kvserver/replica_evaluate_test.go
line 384 at r1 (raw file):
Previously, arulajmani (Arul Ajmani) wrote…
"(shared, replicated)"
Done.
Build failed (retrying...): |
Build failed (retrying...): |
Build failed: |
CI flakes:
bors r+ |
Build succeeded: |
Informs #91545.
Informs #100193.
This commit extends TestEvaluateBatch to include shared, replicated, and shared-replicated lock acquisition using Get, Scan, and ReverseScan requests.
Release note: None