@@ -43,6 +43,7 @@ import (
43
43
"github.com/cockroachdb/cockroach/pkg/sql/sessiondata"
44
44
"github.com/cockroachdb/cockroach/pkg/testutils"
45
45
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
46
+ "github.com/cockroachdb/cockroach/pkg/testutils/skip"
46
47
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
47
48
"github.com/cockroachdb/cockroach/pkg/util/hlc"
48
49
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
@@ -404,9 +405,9 @@ func TestChangefeedAlterPTS(t *testing.T) {
404
405
405
406
_ , _ = expectResolvedTimestamp (t , f2 )
406
407
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
410
411
411
412
if perTablePTSEnabled {
412
413
eFeed , ok := f2 .(cdctest.EnterpriseTestFeed )
@@ -751,8 +752,6 @@ func TestChangefeedMigratesProtectedTimestampTargets(t *testing.T) {
751
752
context .Background (), & s .Server .ClusterSettings ().SV , ptsInterval )
752
753
changefeedbase .ProtectTimestampLag .Override (
753
754
context .Background (), & s .Server .ClusterSettings ().SV , ptsInterval )
754
- changefeedbase .PerTableProtectedTimestamps .Override (
755
- context .Background (), & s .Server .ClusterSettings ().SV , false )
756
755
757
756
sqlDB := sqlutils .MakeSQLRunner (s .DB )
758
757
sysDB := sqlutils .MakeSQLRunner (s .SystemServer .SQLConn (t ))
@@ -870,12 +869,6 @@ func TestChangefeedMigratesProtectedTimestamps(t *testing.T) {
870
869
changefeedbase .ProtectTimestampLag .Override (
871
870
context .Background (), & s .Server .ClusterSettings ().SV , ptsInterval )
872
871
873
- // Since old style PTS records should not be created when per-table PTS records are enabled,
874
- // we disable them for this test. Per-table PTS breaks assumptions about where we can find
875
- // the PTS record uuids.
876
- changefeedbase .PerTableProtectedTimestamps .Override (
877
- context .Background (), & s .Server .ClusterSettings ().SV , false )
878
-
879
872
sqlDB := sqlutils .MakeSQLRunner (s .DB )
880
873
sysDB := sqlutils .MakeSQLRunner (s .SystemServer .SQLConn (t ))
881
874
@@ -977,10 +970,6 @@ func TestChangefeedProtectedTimestampUpdateForMultipleTables(t *testing.T) {
977
970
changefeedbase .ProtectTimestampLag .Override (
978
971
context .Background (), & s .Server .ClusterSettings ().SV , 10 * time .Hour )
979
972
980
- // Ensure we use legacy single protected timestamp behavior for this test
981
- changefeedbase .PerTableProtectedTimestamps .Override (
982
- context .Background (), & s .Server .ClusterSettings ().SV , false )
983
-
984
973
sqlDB .Exec (t , `CREATE TABLE foo (id INT)` )
985
974
sqlDB .Exec (t , `CREATE TABLE bar (id INT)` )
986
975
registry := s .Server .JobRegistry ().(* jobs.Registry )
@@ -1087,12 +1076,14 @@ func TestChangefeedPerTableProtectedTimestampProgression(t *testing.T) {
1087
1076
defer leaktest .AfterTest (t )()
1088
1077
defer log .Scope (t ).Close (t )
1089
1078
1079
+ skip .WithIssue (t , 93793 , "unreleased feature as of 25.4" )
1080
+
1090
1081
testFn := func (t * testing.T , s TestServer , f cdctest.TestFeedFactory ) {
1091
1082
sqlDB := sqlutils .MakeSQLRunner (s .DB )
1092
1083
1093
- // Enable per-table protected timestamps and progress tracking
1094
- changefeedbase . PerTableProtectedTimestamps . Override (
1095
- context . Background (), & s . Server . ClusterSettings (). SV , true )
1084
+ // It's not possible to enable per-table protected timestamps
1085
+ // since it's disabled in 25.4. This is where we will enable the setting
1086
+ // for 26.1.
1096
1087
changefeedbase .TrackPerTableProgress .Override (
1097
1088
context .Background (), & s .Server .ClusterSettings ().SV , true )
1098
1089
0 commit comments