This is an automated email from the ASF dual-hosted git repository.
alex-plekhanov 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 fc3b1d44501 IGNITE-28595 Fix
JavaThinCompatibilityStoragePathTest.testCurrentClientToOldServer on JDK 17
(#13069)
fc3b1d44501 is described below
commit fc3b1d44501ca69503190490a4edafd246328c19
Author: Dmitry Werner <[email protected]>
AuthorDate: Thu Apr 23 21:43:15 2026 +0500
IGNITE-28595 Fix
JavaThinCompatibilityStoragePathTest.testCurrentClientToOldServer on JDK 17
(#13069)
---
.../clients/JavaThinCompatibilityStoragePathTest.java | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/clients/JavaThinCompatibilityStoragePathTest.java
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/clients/JavaThinCompatibilityStoragePathTest.java
index 5e23649c376..76e9fae9160 100644
---
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/clients/JavaThinCompatibilityStoragePathTest.java
+++
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/clients/JavaThinCompatibilityStoragePathTest.java
@@ -32,10 +32,10 @@ import
org.apache.ignite.configuration.DataStorageConfiguration;
import org.apache.ignite.configuration.IgniteConfiguration;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.lang.IgniteProductVersion;
-import org.junit.Assume;
import static
org.apache.ignite.compatibility.clients.JavaThinCompatibilityTest.ADDR;
import static org.apache.ignite.testframework.GridTestUtils.assertThrows;
+import static org.junit.Assume.assumeTrue;
/**
* Tests java thin client compatibility. This test only checks that thin
client can perform basic operations with
@@ -72,14 +72,19 @@ public class JavaThinCompatibilityStoragePathTest extends
AbstractClientCompatib
/** {@inheritDoc} */
@Override public void testOldClientToCurrentServer() throws Exception {
- Assume.assumeTrue("Cluster state API exists only from 2.9.0 release",
ver.compareTo(VER_2_9_0) >= 0);
+ assumeTrue("Cluster state API exists only from 2.9.0 release",
ver.compareTo(VER_2_9_0) >= 0);
super.testOldClientToCurrentServer();
}
/** {@inheritDoc} */
@Override public void testCurrentClientToOldServer() throws Exception {
- Assume.assumeTrue("Cluster state API exists only from 2.9.0 release",
ver.compareTo(VER_2_9_0) >= 0);
+ int majorJavaVer = U.majorJavaVersion(U.jdkVersion());
+
+ if (majorJavaVer >= 17)
+ assumeTrue("JDK 17 support is available starting with release
2.13.0", ver.compareTo(VER_2_13_0) >= 0);
+ else
+ assumeTrue("Cluster state API exists only from 2.9.0 release",
ver.compareTo(VER_2_9_0) >= 0);
super.testCurrentClientToOldServer();
}