Skip to content

Commit 693e2fe

Browse files
committed
IGNITE-26965 Fixed flaky ReliabilityTest#testFailover test.
1 parent 84fc73a commit 693e2fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import org.junit.runners.Parameterized;
6868

6969
import static java.util.Arrays.asList;
70+
import static org.apache.ignite.cache.PartitionLossPolicy.READ_ONLY_SAFE;
7071
import static org.apache.ignite.events.EventType.EVTS_CACHE;
7172
import static org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ;
7273
import static org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED;
@@ -127,6 +128,7 @@ public void testFailover() throws Exception {
127128
final ClientCache<Integer, String> cache = client.getOrCreateCache(
128129
new ClientCacheConfiguration()
129130
.setName("testFailover")
131+
.setPartitionLossPolicy(READ_ONLY_SAFE)
130132
.setCacheMode(CacheMode.REPLICATED)
131133
.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC)
132134
);

0 commit comments

Comments
 (0)