Skip to content

Commit

Permalink
changefeedccl: deflake TestChangefeedWithSimpleDistributionStrategy
Browse files Browse the repository at this point in the history
This change: #125117
removed giving 1M upfront tokens to new tenants. This seems that have
cause some throttling in this test. This commit re-adds the 1M upfront
tokens for this test.

Fixes: #125170

Epic: None

Release note: None
  • Loading branch information
iskettaneh committed Sep 6, 2024
1 parent 24694b7 commit 089f86c
Showing 1 changed file with 6 additions and 0 deletions.
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 @@ -399,6 +399,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())
}

// Use manual replication only.
Expand Down

0 comments on commit 089f86c

Please sign in to comment.