Skip to content
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

logictest: use high priority txn in partial_index and synthetic_privileges tests #133400

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading