-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
sql: improve TestTxnObeysTableModificationTime #23681
Conversation
t.Fatal(err) | ||
} | ||
|
||
// Insert an entry so that the transaction is guaranteed to be | ||
// assigned a timestamp. |
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.
this is no longer needed because transaction timestamps are assigned during BEGIN
pkg/sql/lease_test.go
Outdated
t.Fatal(err) | ||
} | ||
|
||
if err := tx.Commit(); !testutils.IsError(err, "transaction deadline exceeded") { | ||
if err := txWrite.Commit(); !testutils.IsError(err, "TransactionStatusError: transaction deadline exceeded") { |
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.
good example of why this ought to be retryable
8a97976
to
beef95a
Compare
removes the use of SNAPSHOT ISOLATION in the test. Tests read-only, write-only, and read-write transaction scenarios. Release note: None
beef95a
to
7cbea6c
Compare
Since @vivekmenezes is out of the office I'm going to incorporate this into #27040. Review status: complete! 0 of 0 LGTMs obtained (and 1 stale) Comments from Reviewable |
@vivekmenezes there were requests for more docs in #27040, if you're so inclined. |
removes the use of SNAPSHOT ISOLATION in the test.
Tests read-only, write-only, and read-write transaction
scenarios.
Release note: None