@@ -289,11 +289,7 @@ func TestBackupRestorePartitioned(t *testing.T) {
289
289
290
290
const numAccounts = 1000
291
291
292
- // Disabled to run within tenant as certain MR features are not available to tenants.
293
292
args := base.TestClusterArgs {
294
- ServerArgs : base.TestServerArgs {
295
- DefaultTestTenant : base .TODOTestTenantDisabled ,
296
- },
297
293
ServerArgsPerNode : map [int ]base.TestServerArgs {
298
294
0 : {
299
295
Locality : roachpb.Locality {Tiers : []roachpb.Tier {
@@ -452,9 +448,7 @@ func TestBackupRestoreExecLocality(t *testing.T) {
452
448
453
449
// Disabled to run within tenant as certain MR features are not available to tenants.
454
450
args := base.TestClusterArgs {
455
- ServerArgs : base.TestServerArgs {
456
- DefaultTestTenant : base .TODOTestTenantDisabled ,
457
- },
451
+ ServerArgs : base.TestServerArgs {},
458
452
ServerArgsPerNode : map [int ]base.TestServerArgs {
459
453
0 : {
460
454
ExternalIODir : "/west0" ,
@@ -585,14 +579,9 @@ func TestBackupRestoreAppend(t *testing.T) {
585
579
586
580
const numAccounts = 400
587
581
ctx := context .Background ()
588
- tc , sqlDB , tmpDir , cleanupFn := backupRestoreTestSetupWithParams (t , multiNode , numAccounts , InitManualReplication , params )
582
+ _ , sqlDB , tmpDir , cleanupFn := backupRestoreTestSetupWithParams (t , multiNode , numAccounts , InitManualReplication , params )
589
583
defer cleanupFn ()
590
584
591
- if ! tc .ApplicationLayer (0 ).Codec ().ForSystemTenant () {
592
- systemRunner := sqlutils .MakeSQLRunner (tc .SystemLayer (0 ).SQLConn (t ))
593
- systemRunner .Exec (t , `ALTER TENANT [$1] GRANT CAPABILITY can_admin_relocate_range=true` , serverutils .TestTenantID ().ToUint64 ())
594
- }
595
-
596
585
// Ensure that each node has at least one leaseholder. (These splits were
597
586
// made in backupRestoreTestSetup.) These are wrapped with SucceedsSoon()
598
587
// because EXPERIMENTAL_RELOCATE can fail if there are other replication
@@ -4027,7 +4016,7 @@ func TestNonLinearChain(t *testing.T) {
4027
4016
defer cleanup ()
4028
4017
4029
4018
tc := testcluster .NewTestCluster (t , 1 , base.TestClusterArgs {ServerArgs : base.TestServerArgs {
4030
- DefaultTestTenant : base . TODOTestTenantDisabled , ExternalIODir : dir , Knobs : base.TestingKnobs {
4019
+ ExternalIODir : dir , Knobs : base.TestingKnobs {
4031
4020
JobsTestingKnobs : jobs .NewTestingKnobsWithShortIntervals (),
4032
4021
},
4033
4022
}})
@@ -6416,8 +6405,6 @@ func TestProtectedTimestampsFailDueToLimits(t *testing.T) {
6416
6405
// The meta table is used to track limits.
6417
6406
UseMetaTable : true ,
6418
6407
}
6419
- // Test fails within a tenant. Tracked with #76378.
6420
- params .ServerArgs .DefaultTestTenant = base .TODOTestTenantDisabled
6421
6408
tc := testcluster .StartTestCluster (t , 1 , params )
6422
6409
defer tc .Stopper ().Stop (ctx )
6423
6410
db := tc .ServerConn (0 )
@@ -9191,11 +9178,6 @@ func TestGCDropIndexSpanExpansion(t *testing.T) {
9191
9178
ctx := context .Background ()
9192
9179
tc := testcluster .StartTestCluster (t , 1 , base.TestClusterArgs {ServerArgs : base.TestServerArgs {
9193
9180
ExternalIODir : baseDir ,
9194
- // This test hangs when run within a tenant. It's likely that
9195
- // the cause of the hang is the fact that we're waiting on the GC to
9196
- // complete, and we don't have visibility into the GC completing from
9197
- // the tenant. More investigation is required. Tracked with #76378.
9198
- DefaultTestTenant : base .TODOTestTenantDisabled ,
9199
9181
Knobs : base.TestingKnobs {
9200
9182
GCJob : & sql.GCJobTestingKnobs {
9201
9183
RunBeforePerformGC : func (id jobspb.JobID ) error {
@@ -9210,10 +9192,11 @@ func TestGCDropIndexSpanExpansion(t *testing.T) {
9210
9192
},
9211
9193
}})
9212
9194
defer tc .Stopper ().Stop (ctx )
9195
+ systemSQLRunner := sqlutils .MakeSQLRunner (tc .SystemLayer (0 ).SQLConn (t ))
9196
+ systemSQLRunner .Exec (t , `SET CLUSTER SETTING kv.closed_timestamp.target_duration = '100ms'` ) // speeds up the test
9197
+
9213
9198
conn := tc .Conns [0 ]
9214
9199
sqlRunner := sqlutils .MakeSQLRunner (conn )
9215
- sqlRunner .Exec (t , `SET CLUSTER SETTING kv.closed_timestamp.target_duration = '100ms'` ) // speeds up the test
9216
-
9217
9200
sqlRunner .Exec (t , `CREATE DATABASE test;` )
9218
9201
sqlRunner .Exec (t , ` USE test;` )
9219
9202
sqlRunner .Exec (t , `CREATE TABLE foo (id INT PRIMARY KEY, id2 INT, id3 INT, INDEX bar (id2), INDEX baz(id3));` )
@@ -9367,9 +9350,6 @@ func TestExcludeDataFromBackupAndRestore(t *testing.T) {
9367
9350
tc , sqlDB , _ , cleanupFn := backupRestoreTestSetupWithParams (t , singleNode , 10 ,
9368
9351
InitManualReplication , base.TestClusterArgs {
9369
9352
ServerArgs : base.TestServerArgs {
9370
- // Disabled to run within tenants because the function that sets up the restoring cluster
9371
- // has not been configured yet to run within tenants.
9372
- DefaultTestTenant : base .TODOTestTenantDisabled ,
9373
9353
Knobs : base.TestingKnobs {
9374
9354
JobsTestingKnobs : jobs .NewTestingKnobsWithShortIntervals (), // speeds up test
9375
9355
SpanConfig : & spanconfig.TestingKnobs {
@@ -9391,8 +9371,9 @@ func TestExcludeDataFromBackupAndRestore(t *testing.T) {
9391
9371
})
9392
9372
defer cleanupFn ()
9393
9373
9394
- sqlDB .Exec (t , `SET CLUSTER SETTING kv.rangefeed.enabled = true` )
9395
- sqlDB .Exec (t , `SET CLUSTER SETTING kv.closed_timestamp.target_duration = '100ms'` )
9374
+ systemDB := sqlutils .MakeSQLRunner (tc .SystemLayer (0 ).SQLConn (t ))
9375
+ systemDB .Exec (t , `SET CLUSTER SETTING kv.rangefeed.enabled = true` )
9376
+ systemDB .Exec (t , `SET CLUSTER SETTING kv.closed_timestamp.target_duration = '100ms'` )
9396
9377
conn := tc .Conns [0 ]
9397
9378
9398
9379
sqlDB .Exec (t , `CREATE TABLE data.foo (id INT, INDEX bar(id))` )
@@ -10990,7 +10971,6 @@ func TestBackupInLocality(t *testing.T) {
10990
10971
10991
10972
const numAccounts = 1000
10992
10973
10993
- // Disabled to run within tenant as certain MR features are not available to tenants.
10994
10974
args := base.TestClusterArgs {ServerArgsPerNode : map [int ]base.TestServerArgs {
10995
10975
0 : {Locality : localityFromStr (t , "region=east,dc=1,az=1" )},
10996
10976
1 : {Locality : localityFromStr (t , "region=east,dc=2,az=2" )},
0 commit comments