From cd66797a38c9e88eb501e8edb7fb5db1e170e10f Mon Sep 17 00:00:00 2001 From: Rafi Shamim Date: Thu, 24 Oct 2024 20:21:11 +0000 Subject: [PATCH] logictest: use high priority txn in partial_index and synthetic_privileges tests This should make it less likely for the transaction to be aborted. Release note: None --- pkg/sql/logictest/testdata/logic_test/partial_index | 5 +++-- pkg/sql/logictest/testdata/logic_test/synthetic_privileges | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/sql/logictest/testdata/logic_test/partial_index b/pkg/sql/logictest/testdata/logic_test/partial_index index 6ec6b7f262fc..647e385edfa3 100644 --- a/pkg/sql/logictest/testdata/logic_test/partial_index +++ b/pkg/sql/logictest/testdata/logic_test/partial_index @@ -564,10 +564,11 @@ SELECT * FROM h@a_b_foo_idx WHERE b = 'foo' 1 foo # Backfill a partial index with a user defined type when a new table is created -# in the same transaction. +# in the same transaction. Use a high priority to make it less likely for the +# transaction to be aborted. statement ok -BEGIN +BEGIN PRIORITY HIGH statement ok CREATE TABLE i (a INT, b enum) diff --git a/pkg/sql/logictest/testdata/logic_test/synthetic_privileges b/pkg/sql/logictest/testdata/logic_test/synthetic_privileges index a6284ff8f863..d20d1737372f 100644 --- a/pkg/sql/logictest/testdata/logic_test/synthetic_privileges +++ b/pkg/sql/logictest/testdata/logic_test/synthetic_privileges @@ -296,8 +296,9 @@ SELECT has_table_privilege('testuser4', 'crdb_internal.feature_usage', 'SELECT') ---- false +# Use a high priority transaction to avoid this transaction being aborted. statement ok -BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE; +BEGIN TRANSACTION PRIORITY HIGH ISOLATION LEVEL SERIALIZABLE; statement ok GRANT SELECT ON crdb_internal.feature_usage TO testuser4