|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2000, 2023, Oracle and/or its affiliates. |
| 2 | + * Copyright (c) 2000, 2024, Oracle and/or its affiliates. |
3 | 3 | *
|
4 | 4 | * Licensed under the Universal Permissive License v 1.0 as shown at
|
5 | 5 | * https://oss.oracle.com/licenses/upl.
|
|
124 | 124 | * @author lh
|
125 | 125 | * @since 21.12
|
126 | 126 | */
|
127 |
| -@SuppressWarnings({"rawtypes", "unchecked", "resource"}) |
| 127 | +@SuppressWarnings({"rawtypes", "resource"}) |
128 | 128 | public abstract class AbstractClusteredExecutorServiceTests
|
129 | 129 | extends AbstractTaskExecutorServiceTests
|
130 | 130 | {
|
@@ -976,14 +976,28 @@ public void shouldHandleRemoveServerWithCronTask()
|
976 | 976 | cluster.filter(member -> member.getRoleName().equals(STORAGE_ENABLED_MEMBER_ROLE)).clone(2);
|
977 | 977 | server.close(SystemExit.withExitCode(-1));
|
978 | 978 |
|
| 979 | + Logger.info("Storage member terminated ..."); |
| 980 | + |
979 | 981 | // Verify that the task is recovered from failover and is executed at lease 1 time in the 2 minutes interval
|
980 | 982 | int cReceived1 = subscriber1.size();
|
| 983 | + Logger.info(String.format("Subscriber1 [%s] size=%s", coordinator1.getTaskId(), cReceived1)); |
| 984 | + |
981 | 985 | int cReceived2 = subscriber2.size();
|
| 986 | + Logger.info(String.format("Subscriber2 [%s] size=%s", coordinator2.getTaskId(), cReceived2)); |
| 987 | + |
982 | 988 | int cReceived3 = subscriber3.size();
|
| 989 | + Logger.info(String.format("Subscriber3 [%s] size=%s", coordinator3.getTaskId(), cReceived3)); |
983 | 990 |
|
| 991 | + Logger.info("Begin wait for two minutes to ensure task doesn't complete"); |
984 | 992 | Repetitively.assertThat(invoking(subscriber1).isCompleted(), Matchers.is(false), Timeout.of(2, TimeUnit.MINUTES));
|
| 993 | + |
| 994 | + Logger.info("Checking subscriber1 ..."); |
985 | 995 | MatcherAssert.assertThat(subscriber1.size(), Matchers.greaterThan(cReceived1));
|
| 996 | + |
| 997 | + Logger.info("Checking subscriber2 ..."); |
986 | 998 | MatcherAssert.assertThat(subscriber2.size(), Matchers.greaterThan(cReceived2));
|
| 999 | + |
| 1000 | + Logger.info("Checking subscriber3 ..."); |
987 | 1001 | MatcherAssert.assertThat(subscriber3.size(), Matchers.greaterThan(cReceived3));
|
988 | 1002 |
|
989 | 1003 | MatcherAssert.assertThat(coordinator1.cancel(true), Matchers.is(true));
|
|
0 commit comments