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

streamingccl: remove uses of base.TODOTestTenantDisabled #112165

Merged
merged 1 commit into from
Oct 16, 2023
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
4 changes: 1 addition & 3 deletions pkg/ccl/streamingccl/replicationtestutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,7 @@ func CreateServerArgs(args TenantStreamingClustersArgs) base.TestServerArgs {
}
}
return base.TestServerArgs{
// Test fails because it tries to set a cluster setting only accessible
// to system tenants. Tracked with #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
Knobs: base.TestingKnobs{
JobsTestingKnobs: defaultJobsTestingKnobs(),
DistSQL: &execinfra.TestingKnobs{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ func TestPartitionedStreamReplicationClient(t *testing.T) {

h, cleanup := replicationtestutils.NewReplicationHelper(t,
base.TestServerArgs{
// Need to disable the test tenant until tenant-level restore is
// supported. Tracked with #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
Knobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func TestStreamIngestionJobWithRandomClient(t *testing.T) {
ServerArgs: base.TestServerArgs{
// Test hangs with test tenant. More investigation is required.
// Tracked with #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
Knobs: base.TestingKnobs{
TenantTestingKnobs: &sql.TenantTestingKnobs{
// Needed to pin down the ID of the replication target.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,7 @@ func TestCutoverBuiltin(t *testing.T) {

args := base.TestClusterArgs{
ServerArgs: base.TestServerArgs{
// Disable the test tenant as the test below looks for a
// streaming job assuming that it's within the system tenant.
// Tracked with #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestIsSpecificToStorageLayerAndNeedsASystemTenant,
Knobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
},
Expand Down Expand Up @@ -553,7 +550,6 @@ func TestCutoverFractionProgressed(t *testing.T) {
},
},
},
DefaultTestTenant: base.TODOTestTenantDisabled,
})
defer s.Stopper().Stop(ctx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,13 @@ func TestStreamIngestionProcessor(t *testing.T) {
ctx := context.Background()

tc := testcluster.StartTestCluster(t, 1 /* nodes */, base.TestClusterArgs{
ServerArgs: base.TestServerArgs{DefaultTestTenant: base.TODOTestTenantDisabled},
ServerArgs: base.TestServerArgs{
// Perhaps it would be possible to make this
// run in a secondary tenant, but the test
// would need to be completely rewritten to be
// even further from real-world operation.
DefaultTestTenant: base.TestIsSpecificToStorageLayerAndNeedsASystemTenant,
},
})
defer tc.Stopper().Stop(ctx)
db := tc.Server(0).InternalDB().(descs.DB)
Expand Down
4 changes: 1 addition & 3 deletions pkg/ccl/streamingccl/streamproducer/producer_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ func TestStreamReplicationProducerJob(t *testing.T) {
ctx := context.Background()
clusterArgs := base.TestClusterArgs{
ServerArgs: base.TestServerArgs{
// Test fails within a test tenant. More investigation
// is required. Tracked with #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestIsSpecificToStorageLayerAndNeedsASystemTenant,
Knobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
},
Expand Down
19 changes: 5 additions & 14 deletions pkg/ccl/streamingccl/streamproducer/replication_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@ func TestReplicationStreamInitialization(t *testing.T) {
defer log.Scope(t).Close(t)

serverArgs := base.TestServerArgs{
// This test fails when run from within a test tenant. This is likely
// due to the lack of support for tenant streaming, but more
// investigation is required. Tracked with #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
Knobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
},
Expand Down Expand Up @@ -347,9 +344,7 @@ func TestStreamPartition(t *testing.T) {
defer log.Scope(t).Close(t)
h, cleanup := replicationtestutils.NewReplicationHelper(t,
base.TestServerArgs{
// Test fails within a test tenant. More investigation is required.
// Tracked with #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
})
defer cleanup()
testTenantName := roachpb.TenantName("test-tenant")
Expand Down Expand Up @@ -495,9 +490,7 @@ func TestStreamAddSSTable(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)
h, cleanup := replicationtestutils.NewReplicationHelper(t, base.TestServerArgs{
// Test hangs when run within the default test tenant. Tracked with
// #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
})
defer cleanup()
testTenantName := roachpb.TenantName("test-tenant")
Expand Down Expand Up @@ -587,7 +580,7 @@ func TestCompleteStreamReplication(t *testing.T) {
Knobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
},
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
})
defer cleanup()
srcTenantID := serverutils.TestTenantID()
Expand Down Expand Up @@ -655,9 +648,7 @@ func TestStreamDeleteRange(t *testing.T) {
skip.UnderStressRace(t, "disabled under stress and race")

h, cleanup := replicationtestutils.NewReplicationHelper(t, base.TestServerArgs{
// Test hangs when run within the default test tenant. Tracked with
// #76378.
DefaultTestTenant: base.TODOTestTenantDisabled,
DefaultTestTenant: base.TestControlsTenantsExplicitly,
})
defer cleanup()
testTenantName := roachpb.TenantName("test-tenant")
Expand Down