Skip to content

Commit 5d0f19a

Browse files
committed
IGNITE-26965 Fixed flaky ReliabilityTest#testServiceMethodInvocationAfterFailover
1 parent 266700d commit 5d0f19a

File tree

1 file changed

+14
-28
lines changed

1 file changed

+14
-28
lines changed

modules/core/src/test/java/org/apache/ignite/client/ReliabilityTest.java

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ public void testFailover() throws Exception {
195195
/**
196196
* Test single server failover.
197197
*/
198-
@Test
199-
@Ignore
198+
@Test
200199
public void testSingleServerFailover() throws Exception {
201200
try (LocalIgniteCluster cluster = LocalIgniteCluster.start(1);
202201
IgniteClient client = Ignition.startClient(getClientConfiguration()
@@ -218,8 +217,7 @@ public void testSingleServerFailover() throws Exception {
218217
/**
219218
* Test single server can be used multiple times in configuration.
220219
*/
221-
@Test
222-
@Ignore
220+
@Test
223221
public void testSingleServerDuplicatedFailover() throws Exception {
224222
try (LocalIgniteCluster cluster = LocalIgniteCluster.start(1);
225223
IgniteClient client = Ignition.startClient(getClientConfiguration()
@@ -242,8 +240,7 @@ public void testSingleServerDuplicatedFailover() throws Exception {
242240
/**
243241
* Test single server can be used multiple times in configuration.
244242
*/
245-
@Test
246-
@Ignore
243+
@Test
247244
public void testRetryReadPolicyRetriesCacheGet() {
248245
try (LocalIgniteCluster cluster = LocalIgniteCluster.start(1);
249246
IgniteClient client = Ignition.startClient(getClientConfiguration()
@@ -267,8 +264,7 @@ public void testRetryReadPolicyRetriesCacheGet() {
267264
/**
268265
* Tests retry policy exception handling.
269266
*/
270-
@Test
271-
@Ignore
267+
@Test
272268
public void testExceptionInRetryPolicyPropagatesToCaller() {
273269
Assume.assumeFalse(partitionAware);
274270

@@ -301,8 +297,7 @@ public void testExceptionInRetryPolicyPropagatesToCaller() {
301297
* Tests that setting retry policy to null effectively disables retry/failover.
302298
*/
303299
@SuppressWarnings("ThrowableNotThrown")
304-
@Test
305-
@Ignore
300+
@Test
306301
public void testNullRetryPolicyDisablesFailover() {
307302
try (LocalIgniteCluster cluster = LocalIgniteCluster.start(1);
308303
IgniteClient client = Ignition.startClient(getClientConfiguration()
@@ -330,8 +325,7 @@ public void testNullRetryPolicyDisablesFailover() {
330325
* Tests that retry limit of 1 effectively disables retry/failover.
331326
*/
332327
@SuppressWarnings("ThrowableNotThrown")
333-
@Test
334-
@Ignore
328+
@Test
335329
public void testRetryNonePolicyDisablesFailover() {
336330
try (LocalIgniteCluster cluster = LocalIgniteCluster.start(1);
337331
IgniteClient client = Ignition.startClient(getClientConfiguration()
@@ -358,8 +352,7 @@ public void testRetryNonePolicyDisablesFailover() {
358352
/**
359353
* Tests that {@link ClientOperationType} is updated accordingly when {@link ClientOperation} is added.
360354
*/
361-
@Test
362-
@Ignore
355+
@Test
363356
public void testRetryPolicyConvertOpAllOperationsSupported() {
364357
List<ClientOperation> nullOps = Arrays.stream(ClientOperation.values())
365358
.filter(o -> o.toPublicOperationType() == null)
@@ -379,8 +372,7 @@ public void testRetryPolicyConvertOpAllOperationsSupported() {
379372
/**
380373
* Test that failover doesn't lead to silent query inconsistency.
381374
*/
382-
@Test
383-
@Ignore
375+
@Test
384376
public void testQueryConsistencyOnFailover() throws Exception {
385377
int CLUSTER_SIZE = 2;
386378

@@ -418,8 +410,7 @@ public void testQueryConsistencyOnFailover() throws Exception {
418410
/**
419411
* Test that client works properly with servers txId intersection.
420412
*/
421-
@Test
422-
@Ignore
413+
@Test
423414
@SuppressWarnings("ThrowableNotThrown")
424415
public void testTxWithIdIntersection() throws Exception {
425416
// Partition-aware client connects to all known servers at the start, and dropAllThinClientConnections
@@ -489,8 +480,7 @@ public void testTxWithIdIntersection() throws Exception {
489480
/**
490481
* Test reconnection throttling.
491482
*/
492-
@Test
493-
@Ignore
483+
@Test
494484
@SuppressWarnings("ThrowableNotThrown")
495485
public void testReconnectionThrottling() throws Exception {
496486
// If partition awareness is enabled, channels are restored asynchronously without applying throttling.
@@ -536,8 +526,7 @@ public void testReconnectionThrottling() throws Exception {
536526
/**
537527
* Test server-side critical error.
538528
*/
539-
@Test
540-
@Ignore
529+
@Test
541530
public void testServerCriticalError() throws Exception {
542531
AtomicBoolean failure = new AtomicBoolean();
543532

@@ -575,8 +564,7 @@ public void testServerCriticalError() throws Exception {
575564
* Test that client can invoke service method with externalizable parameter after
576565
* cluster failover.
577566
*/
578-
@Test
579-
public void testServiceMethodInvocationAfterFailover() throws Exception {
567+
@Test public void testServiceMethodInvocationAfterFailover() throws Exception {
580568
PersonExternalizable person = new PersonExternalizable("Person 1");
581569

582570
ServiceConfiguration testSrvcCfg = new ServiceConfiguration();
@@ -641,8 +629,7 @@ public void testServiceMethodInvocationAfterFailover() throws Exception {
641629
/**
642630
* Tests that server does not disconnect idle clients when heartbeats are enabled.
643631
*/
644-
@Test
645-
@Ignore
632+
@Test
646633
public void testServerDoesNotDisconnectIdleClientWithHeartbeats() throws Exception {
647634
IgniteConfiguration serverCfg = getConfiguration().setClientConnectorConfiguration(
648635
new ClientConnectorConfiguration().setIdleTimeout(2000));
@@ -661,8 +648,7 @@ public void testServerDoesNotDisconnectIdleClientWithHeartbeats() throws Excepti
661648
/**
662649
* Tests service proxy failover.
663650
*/
664-
@Test
665-
@Ignore
651+
@Test
666652
public void testServiceProxyFailover() throws Exception {
667653
Assume.assumeTrue(partitionAware);
668654

0 commit comments

Comments
 (0)