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

changefeedccl: deflake TestChangefeedWithSimpleDistributionStrategy #130242

Merged
merged 1 commit into from
Sep 6, 2024
Merged
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
6 changes: 6 additions & 0 deletions pkg/ccl/changefeedccl/changefeed_dist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,12 @@ func newRangeDistributionTester(
systemDB.Exec(t, "SET CLUSTER SETTING kv.rangefeed.enabled = true")
if tc.StartedDefaultTestTenant() {
systemDB.Exec(t, `ALTER TENANT [$1] GRANT CAPABILITY can_admin_relocate_range=true`, serverutils.TestTenantID().ToUint64())
// Give 1,000,000 upfront tokens to the tenant, and keep the tokens per
// second rate to the default value of 10,000. This helps avoid throttling
// in the tests.
systemDB.Exec(t,
"SELECT crdb_internal.update_tenant_resource_limits($1::INT, 1000000, 10000, 0, now(), 0)",
serverutils.TestTenantID().ToUint64())
}

t.Logf("%s: creating and inserting rows into table", timeutil.Now().Format(time.DateTime))
Expand Down
Loading