File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -899,6 +899,9 @@ func TestRetriableErrorDuringUpgradedTransaction(t *testing.T) {
899
899
900
900
var fooTableId uint32
901
901
testDB .Exec (t , "SET enable_implicit_transaction_for_batch_statements = true" )
902
+ // The test injects a retry error after the interceptors, so we need to
903
+ // disable write buffers for the request to make it to the server.
904
+ testDB .Exec (t , "SEt kv_transaction_buffered_writes_enabled = false" )
902
905
testDB .Exec (t , "CREATE TABLE bar (a INT PRIMARY KEY)" )
903
906
testDB .Exec (t , "CREATE TABLE foo (a INT PRIMARY KEY)" )
904
907
testDB .QueryRow (t , "SELECT 'foo'::regclass::oid" ).Scan (& fooTableId )
Original file line number Diff line number Diff line change @@ -216,6 +216,12 @@ func TestAbortCountConflictingWrites(t *testing.T) {
216
216
217
217
accum := initializeQueryCounter (s )
218
218
219
+ // The test injects a retry error after the interceptors, so we need to
220
+ // disable write buffers for the request to make it to the server.
221
+ if _ , err := sqlDB .Exec ("SEt kv_transaction_buffered_writes_enabled = false" ); err != nil {
222
+ t .Fatal (err )
223
+ }
224
+
219
225
if _ , err := sqlDB .Exec ("CREATE DATABASE db" ); err != nil {
220
226
t .Fatal (err )
221
227
}
You can’t perform that action at this time.
0 commit comments