-
Notifications
You must be signed in to change notification settings - Fork 4k
changefeedccl: enable a couple of tests with test tenant #156306
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2621,7 +2621,7 @@ func TestChangefeedExternalIODisabled(t *testing.T) { | |
| } | ||
| ctx := context.Background() | ||
| s, db, _ := serverutils.StartServer(t, base.TestServerArgs{ | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | ||
| ExternalIODirConfig: base.ExternalIODirConfig{ | ||
| DisableOutbound: true, | ||
| }, | ||
|
|
@@ -4067,7 +4067,7 @@ func TestChangefeedCreateAuthorizationWithChangefeedPriv(t *testing.T) { | |
|
|
||
| ctx := context.Background() | ||
| s, db, _ := serverutils.StartServer(t, base.TestServerArgs{ | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | ||
| Knobs: base.TestingKnobs{ | ||
| JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(), | ||
| DistSQL: &execinfra.TestingKnobs{ | ||
|
|
@@ -8384,9 +8384,7 @@ func TestChangefeedHandlesDrainingNodes(t *testing.T) { | |
|
|
||
| tc := serverutils.StartCluster(t, 4, base.TestClusterArgs{ | ||
| ServerArgs: base.TestServerArgs{ | ||
| // Test uses SPLIT AT, which isn't currently supported for | ||
| // secondary tenants. Tracked with #76378. | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | ||
| UseDatabase: "test", | ||
| Knobs: knobs, | ||
| ExternalIODir: sinkDir, | ||
|
|
@@ -8549,9 +8547,7 @@ func TestChangefeedHandlesRollingRestart(t *testing.T) { | |
| return perNode | ||
| }(), | ||
| ServerArgs: base.TestServerArgs{ | ||
| // Test uses SPLIT AT, which isn't currently supported for | ||
| // secondary tenants. Tracked with #76378. | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | ||
| }, | ||
| }) | ||
| defer tc.Stopper().Stop(context.Background()) | ||
|
|
@@ -8707,9 +8703,7 @@ func TestChangefeedTimelyResolvedTimestampUpdatePostRollingRestart(t *testing.T) | |
| base.TestClusterArgs{ | ||
| ServerArgsPerNode: perServerKnobs, | ||
| ServerArgs: base.TestServerArgs{ | ||
| // Test uses SPLIT AT, which isn't currently supported for | ||
| // secondary tenants. Tracked with #76378. | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | ||
| }, | ||
| ReusableListenerReg: listenerReg, | ||
| }) | ||
|
|
@@ -8802,9 +8796,7 @@ func TestChangefeedPropagatesTerminalError(t *testing.T) { | |
| ServerArgsPerNode: perServerKnobs, | ||
| ReplicationMode: base.ReplicationManual, | ||
| ServerArgs: base.TestServerArgs{ | ||
| // Test uses SPLIT AT, which isn't currently supported for | ||
| // secondary tenants. Tracked with #76378. | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | ||
| }, | ||
| }) | ||
| defer tc.Stopper().Stop(context.Background()) | ||
|
|
@@ -11309,7 +11301,7 @@ func TestChangefeedExecLocality(t *testing.T) { | |
| const nodes = 4 | ||
| args := base.TestClusterArgs{ | ||
| ServerArgs: base.TestServerArgs{ | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, // need nodelocal and splits. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment too, is it not accurate for why this test wasn't working for tenants?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment is somewhat stale for sure. |
||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | ||
| }, | ||
| ServerArgsPerNode: map[int]base.TestServerArgs{}, | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,17 +48,16 @@ func TestParquetRows(t *testing.T) { | |
| skip.UnderStress(t) | ||
|
|
||
| ctx := context.Background() | ||
| s, db, _ := serverutils.StartServer(t, base.TestServerArgs{ | ||
| // TODO(#98816): cdctest.GetHydratedTableDescriptor does not work with tenant dbs. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome, nice that we have this test back. |
||
| // Once it is fixed, this flag can be removed. | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| }) | ||
| defer s.Stopper().Stop(ctx) | ||
| srv, db, _ := serverutils.StartServer(t, base.TestServerArgs{}) | ||
| defer srv.Stopper().Stop(ctx) | ||
| s := srv.ApplicationLayer() | ||
|
|
||
| sysDB := sqlutils.MakeSQLRunner(srv.SystemLayer().SQLConn(t)) | ||
| sysDB.Exec(t, "SET CLUSTER SETTING kv.rangefeed.enabled = true") | ||
|
|
||
| maxRowGroupSize := int64(4) | ||
|
|
||
| sqlDB := sqlutils.MakeSQLRunner(db) | ||
| sqlDB.Exec(t, "SET CLUSTER SETTING kv.rangefeed.enabled = true") | ||
|
|
||
| newDecimal := func(s string) *tree.DDecimal { | ||
| d, _, _ := apd.NewFromString(s) | ||
|
|
@@ -264,7 +263,7 @@ func TestParquetRows(t *testing.T) { | |
| } | ||
|
|
||
| func makeRangefeedReaderAndDecoder( | ||
| t *testing.T, s serverutils.TestServerInterface, | ||
| t *testing.T, s serverutils.ApplicationLayerInterface, | ||
| ) (func(t testing.TB) *kvpb.RangeFeedValue, func(), cdcevent.Decoder) { | ||
| tableDesc := cdctest.GetHydratedTableDescriptor(t, s.ExecutorConfig(), "foo") | ||
| popRow, cleanup := cdctest.MakeRangeFeedValueReader(t, s.ExecutorConfig(), tableDesc) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were these comments (that SPLIT AT isn't supported for secondary tenants) no longer true?
Are we now tracking these exclusively in #142799 and not #76378?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments here are definitely stale, which is why I decided to remove them to avoid possible confusion. (In particular, when this comment was added, we needed to explicitly add
tenantcapabilitiespb.CanAdminSplitto the tenant, but now this capability is granted by default, so no need to do anything about it. Perhaps the test will just work, perhaps it'll require some other adjustments, but SPLIT AT should just work.)I'm working on doing first level triage of all things that reference #76378 with the goal of closing that issue soon. All tests / packages that have test tenant randomization disabled will have a separate, specific issue, and #142799 is the common issue for all CDC tests.