This is an automated email from the ASF dual-hosted git repository.
zstan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 4cb61ce1aab IGNITE-27934 Fix flaky
GridBinaryAffinityKeySelfTest#testAffinity (#12896)
4cb61ce1aab is described below
commit 4cb61ce1aaba4a0a6b6bad1b7a4b56e63b4d93cb
Author: Evgeniy Stanilovskiy <[email protected]>
AuthorDate: Fri Mar 20 16:31:06 2026 +0300
IGNITE-27934 Fix flaky GridBinaryAffinityKeySelfTest#testAffinity (#12896)
---
.../ignite/internal/binary/GridBinaryAffinityKeySelfTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/modules/core/src/test/java/org/apache/ignite/internal/binary/GridBinaryAffinityKeySelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/binary/GridBinaryAffinityKeySelfTest.java
index 3e5304f46fa..4bbc4a4551d 100644
---
a/modules/core/src/test/java/org/apache/ignite/internal/binary/GridBinaryAffinityKeySelfTest.java
+++
b/modules/core/src/test/java/org/apache/ignite/internal/binary/GridBinaryAffinityKeySelfTest.java
@@ -36,6 +36,7 @@ import
org.apache.ignite.internal.processors.cacheobject.IgniteCacheObjectProces
import org.apache.ignite.lang.IgniteCallable;
import org.apache.ignite.lang.IgniteRunnable;
import org.apache.ignite.resources.IgniteInstanceResource;
+import org.apache.ignite.testframework.GridTestUtils;
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
import org.junit.Test;
@@ -101,6 +102,11 @@ public class GridBinaryAffinityKeySelfTest extends
GridCommonAbstractTest {
// Expected error.
}
+ assertTrue("Failed to wait for minor version change",
+ GridTestUtils.waitForCondition(() ->
+
grid(0).context().discovery().topologyVersionEx().minorTopologyVersion() == 1,
+ 5_000));
+
checkAffinity(igniteNoCache);
}
}