@@ -114,7 +114,9 @@ var immediateModeWriter = settings.RegisterStringSetting(
114
114
settings .ApplicationLevel ,
115
115
"logical_replication.consumer.immediate_mode_writer" ,
116
116
"the writer to use when in immediate mode" ,
117
- metamorphic .ConstantWithTestChoice ("logical_replication.consumer.immediate_mode_writer" , string (writerTypeSQL ), string (writerTypeLegacyKV ), string (writerTypeCRUD )),
117
+ // TODO(jeffswenson): re-enable the SQL writer once tombstone handling is fixed
118
+ // metamorphic.ConstantWithTestChoice("logical_replication.consumer.immediate_mode_writer", string(writerTypeSQL), string(writerTypeLegacyKV), string(writerTypeCRUD)),
119
+ metamorphic .ConstantWithTestChoice ("logical_replication.consumer.immediate_mode_writer" , string (writerTypeLegacyKV )),
118
120
settings .WithValidateString (func (sv * settings.Values , val string ) error {
119
121
if val != string (writerTypeSQL ) && val != string (writerTypeLegacyKV ) && val != string (writerTypeCRUD ) {
120
122
return errors .Newf ("immediate mode writer must be either 'sql', 'legacy-kv', or 'crud', got '%s'" , val )
@@ -783,12 +785,7 @@ func getWriterType(
783
785
) (writerType , error ) {
784
786
switch mode {
785
787
case jobspb .LogicalReplicationDetails_Immediate :
786
- // Require v25.2 to use the sql writer by default to ensure that the
787
- // KV origin timestamp validation is available on all nodes.
788
- if settings .Version .IsActive (ctx , clusterversion .V25_2 ) {
789
- return writerType (immediateModeWriter .Get (& settings .SV )), nil
790
- }
791
- return writerTypeSQL , nil
788
+ return writerType (immediateModeWriter .Get (& settings .SV )), nil
792
789
case jobspb .LogicalReplicationDetails_Validated :
793
790
return writerTypeSQL , nil
794
791
default :
0 commit comments