@@ -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,8 @@ 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
+ perTablePTSEnabled := false
410
410
411
411
if perTablePTSEnabled {
412
412
eFeed , ok := f2 .(cdctest.EnterpriseTestFeed )
@@ -751,8 +751,6 @@ func TestChangefeedMigratesProtectedTimestampTargets(t *testing.T) {
751
751
context .Background (), & s .Server .ClusterSettings ().SV , ptsInterval )
752
752
changefeedbase .ProtectTimestampLag .Override (
753
753
context .Background (), & s .Server .ClusterSettings ().SV , ptsInterval )
754
- changefeedbase .PerTableProtectedTimestamps .Override (
755
- context .Background (), & s .Server .ClusterSettings ().SV , false )
756
754
757
755
sqlDB := sqlutils .MakeSQLRunner (s .DB )
758
756
sysDB := sqlutils .MakeSQLRunner (s .SystemServer .SQLConn (t ))
@@ -870,12 +868,6 @@ func TestChangefeedMigratesProtectedTimestamps(t *testing.T) {
870
868
changefeedbase .ProtectTimestampLag .Override (
871
869
context .Background (), & s .Server .ClusterSettings ().SV , ptsInterval )
872
870
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
871
sqlDB := sqlutils .MakeSQLRunner (s .DB )
880
872
sysDB := sqlutils .MakeSQLRunner (s .SystemServer .SQLConn (t ))
881
873
@@ -977,10 +969,6 @@ func TestChangefeedProtectedTimestampUpdateForMultipleTables(t *testing.T) {
977
969
changefeedbase .ProtectTimestampLag .Override (
978
970
context .Background (), & s .Server .ClusterSettings ().SV , 10 * time .Hour )
979
971
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
972
sqlDB .Exec (t , `CREATE TABLE foo (id INT)` )
985
973
sqlDB .Exec (t , `CREATE TABLE bar (id INT)` )
986
974
registry := s .Server .JobRegistry ().(* jobs.Registry )
@@ -1087,12 +1075,14 @@ func TestChangefeedPerTableProtectedTimestampProgression(t *testing.T) {
1087
1075
defer leaktest .AfterTest (t )()
1088
1076
defer log .Scope (t ).Close (t )
1089
1077
1078
+ skip .WithIssue (t , 93793 , "unreleased feature as of 25.4" )
1079
+
1090
1080
testFn := func (t * testing.T , s TestServer , f cdctest.TestFeedFactory ) {
1091
1081
sqlDB := sqlutils .MakeSQLRunner (s .DB )
1092
1082
1093
- // Enable per-table protected timestamps and progress tracking
1094
- changefeedbase . PerTableProtectedTimestamps . Override (
1095
- context . Background (), & s . Server . ClusterSettings (). SV , true )
1083
+ // It's not possible to enable per-table protected timestamps
1084
+ // since it's disabled in 25.4. This is where we will enable the setting
1085
+ // for 26.1.
1096
1086
changefeedbase .TrackPerTableProgress .Override (
1097
1087
context .Background (), & s .Server .ClusterSettings ().SV , true )
1098
1088
0 commit comments