Skip to content

Commit

Permalink
Merge pull request #133408 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.3-133400

release-24.3: logictest: use high priority txn in partial_index and synthetic_privileges tests
  • Loading branch information
rafiss authored Oct 25, 2024
2 parents ecdf0c4 + cd66797 commit 3bf40c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkg/sql/logictest/testdata/logic_test/partial_index
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion pkg/sql/logictest/testdata/logic_test/synthetic_privileges
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bf40c2

Please sign in to comment.