Skip to content

Commit 0cc36f7

Browse files
committed
WIP
1 parent dd67cb8 commit 0cc36f7

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

pkg/ccl/changefeedccl/changefeed_dist.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@ func makePlan(
461461
var progressConfig *execinfrapb.ChangefeedProgressConfig
462462
if execCtx.ExecCfg().Settings.Version.IsActive(ctx, clusterversion.V25_4) {
463463
perTableTrackingEnabled := changefeedbase.TrackPerTableProgress.Get(sv)
464-
perTableProtectedTimestampsEnabled := changefeedbase.PerTableProtectedTimestamps.Get(sv)
464+
// In 25.4 we are hard disabling per table protected timestamps.
465+
perTableProtectedTimestampsEnabled := false
465466
progressConfig = &execinfrapb.ChangefeedProgressConfig{
466467
PerTableTracking: perTableTrackingEnabled,
467468
// If the per table pts flag was turned on between changefeed creation and now,

pkg/ccl/changefeedccl/changefeed_stmt.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ func changefeedPlanHook(
340340

341341
// We do not yet have the progress config here, so we need to check the settings directly.
342342
perTableTrackingEnabled := changefeedbase.TrackPerTableProgress.Get(&p.ExecCfg().Settings.SV)
343-
perTableProtectedTimestampsEnabled := changefeedbase.PerTableProtectedTimestamps.Get(&p.ExecCfg().Settings.SV)
343+
// In 25.4 we are hard disabling per table protected timestamps.
344+
perTableProtectedTimestampsEnabled := false
344345
usingPerTablePTS := perTableTrackingEnabled && perTableProtectedTimestampsEnabled
345346
if usingPerTablePTS {
346347
protectedTimestampRecords := make(map[descpb.ID]uuid.UUID)

pkg/ccl/changefeedccl/changefeed_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12065,7 +12065,10 @@ WITH resolved='10ms', min_checkpoint_frequency='10ms', no_initial_scan`
1206512065
require.NoError(t, err)
1206612066
return ts
1206712067
}
12068-
perTablePTSEnabled := changefeedbase.PerTableProtectedTimestamps.Get(&s.Server.ClusterSettings().SV)
12068+
12069+
// In 25.4 we are hard disabling per table protected timestamps.
12070+
// Regardless of the setting, per table protected timestamps are disabled.
12071+
perTablePTSEnabled := false
1206912072
perTableProgressEnabled := changefeedbase.TrackPerTableProgress.Get(&s.Server.ClusterSettings().SV)
1207012073
getPTS := func() hlc.Timestamp {
1207112074
if perTablePTSEnabled && perTableProgressEnabled {

pkg/ccl/changefeedccl/protected_timestamps_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import (
4343
"github.com/cockroachdb/cockroach/pkg/sql/sessiondata"
4444
"github.com/cockroachdb/cockroach/pkg/testutils"
4545
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
46+
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
4647
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
4748
"github.com/cockroachdb/cockroach/pkg/util/hlc"
4849
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
@@ -404,9 +405,9 @@ func TestChangefeedAlterPTS(t *testing.T) {
404405

405406
_, _ = expectResolvedTimestamp(t, f2)
406407

407-
perTablePTSEnabled :=
408-
changefeedbase.PerTableProtectedTimestamps.Get(&s.Server.ClusterSettings().SV) &&
409-
changefeedbase.TrackPerTableProgress.Get(&s.Server.ClusterSettings().SV)
408+
// In 25.4 we are hard disabling per table protected timestamps.
409+
// Regardless of the setting, per table protected timestamps are disabled.
410+
perTablePTSEnabled := false
410411

411412
if perTablePTSEnabled {
412413
eFeed, ok := f2.(cdctest.EnterpriseTestFeed)
@@ -1087,6 +1088,8 @@ func TestChangefeedPerTableProtectedTimestampProgression(t *testing.T) {
10871088
defer leaktest.AfterTest(t)()
10881089
defer log.Scope(t).Close(t)
10891090

1091+
skip.WithIssue(t, 93793, "unreleased feature as of 25.4")
1092+
10901093
testFn := func(t *testing.T, s TestServer, f cdctest.TestFeedFactory) {
10911094
sqlDB := sqlutils.MakeSQLRunner(s.DB)
10921095

0 commit comments

Comments
 (0)