3
3
4
4
using System ;
5
5
using System . Collections . Generic ;
6
- using System . Diagnostics ;
7
6
using System . IO ;
8
7
using System . Linq ;
9
8
using System . Net ;
@@ -1174,16 +1173,16 @@ public void ClusterReplicationCheckpointAlignmentTest([Values] bool performRMW)
1174
1173
}
1175
1174
}
1176
1175
1177
- [ Test , Order ( 23 ) ]
1178
- [ Conditional ( "DEBUG" ) ]
1179
- public void ClusterExceptionAtReplicaAofSyncStart ( )
1176
+ // [Test, Order(23)]
1177
+ // [Conditional("DEBUG")]
1178
+ public void ClusterExceptionAtReplicaAofSyncStart ( [ Values ] bool enableDisklessSync )
1180
1179
{
1181
1180
ExceptionScenarioHelper . EnableException ( ExceptionScenario . FAIL_RIGHT_BEFORE_AOF_STREAM_STARTS ) ;
1182
1181
1183
1182
var primaryIndex = 0 ;
1184
1183
var replicaIndex = 1 ;
1185
1184
var nodes_count = 2 ;
1186
- context . CreateInstances ( nodes_count , disableObjects : false , enableAOF : true , useTLS : useTLS ) ;
1185
+ context . CreateInstances ( nodes_count , disableObjects : false , enableAOF : true , useTLS : useTLS , enableDisklessSync : enableDisklessSync , timeout : timeout ) ;
1187
1186
context . CreateConnection ( useTLS : useTLS ) ;
1188
1187
1189
1188
_ = context . clusterTestUtils . AddDelSlotsRange ( primaryIndex , [ ( 0 , 16383 ) ] , addslot : true , logger : context . logger ) ;
@@ -1195,13 +1194,13 @@ public void ClusterExceptionAtReplicaAofSyncStart()
1195
1194
context . clusterTestUtils . WaitUntilNodeIsKnown ( primaryIndex , replicaIndex , logger : context . logger ) ;
1196
1195
1197
1196
var resp = context . clusterTestUtils . ClusterReplicate ( replicaNodeIndex : replicaIndex , primaryNodeIndex : primaryIndex , failEx : false , logger : context . logger ) ;
1198
- ClassicAssert . AreEqual ( "ERR Debug scenario triggered FAIL_AFTER_RECOVERY_AND_BEFORE_ATTACH " , resp ) ;
1197
+ ClassicAssert . AreEqual ( "Debug scenario triggered FAIL_RIGHT_BEFORE_AOF_STREAM_STARTS " , resp ) ;
1199
1198
1200
1199
var role = context . clusterTestUtils . RoleCommand ( replicaIndex , logger : context . logger ) ;
1201
1200
ClassicAssert . AreEqual ( "master" , role . Value ) ;
1202
1201
1203
1202
resp = context . clusterTestUtils . ClusterReplicate ( replicaNodeIndex : replicaIndex , primaryNodeIndex : primaryIndex , failEx : false , logger : context . logger ) ;
1204
- ClassicAssert . AreEqual ( "ERR Debug scenario triggered FAIL_AFTER_RECOVERY_AND_BEFORE_ATTACH " , resp ) ;
1203
+ ClassicAssert . AreEqual ( "Debug scenario triggered FAIL_RIGHT_BEFORE_AOF_STREAM_STARTS " , resp ) ;
1205
1204
}
1206
1205
}
1207
1206
}
0 commit comments