Skip to content

Commit 63232c1

Browse files
IGNITE-26580 Ignore validation test until proper validation is implemented
1 parent 09ebf1d commit 63232c1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

modules/core/src/test/java/org/apache/ignite/cache/affinity/rendezvous/MdcAffinityBackupFilterSelfTest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import org.apache.ignite.internal.IgniteEx;
3939
import org.apache.ignite.lang.IgniteBiPredicate;
4040
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
41+
import org.junit.Ignore;
4142
import org.junit.Test;
4243

4344
import static org.apache.ignite.cluster.ClusterState.ACTIVE;
@@ -236,6 +237,7 @@ public void test3DcDistribution() throws Exception {
236237
* @throws Exception If failed.
237238
*/
238239
@Test
240+
@Ignore("https://issues.apache.org/jira/browse/IGNITE-26967")
239241
public void testAffinityFilterConfigurationValidation() throws Exception {
240242
dcIds = new String[] {"DC_0", "DC_1"};
241243
backups = 3;
@@ -255,6 +257,20 @@ public void testAffinityFilterConfigurationValidation() throws Exception {
255257

256258
assertTrue(errMsg.contains("Affinity backup filter class mismatch"));
257259
}
260+
261+
backupFilter = new MdcAffinityBackupFilter(dcIds.length, backups + dcIds.length);
262+
try {
263+
startGrid(1);
264+
265+
fail("Expected exception was not thrown.");
266+
}
267+
catch (IgniteCheckedException e) {
268+
String errMsg = e.getMessage();
269+
270+
assertNotNull(errMsg);
271+
272+
assertTrue(errMsg.contains("Affinity backup filter mismatch"));
273+
}
258274
}
259275

260276
/**

0 commit comments

Comments
 (0)