diff --git a/core/src/test/java/org/elasticsearch/index/engine/LiveVersionMapTests.java b/core/src/test/java/org/elasticsearch/index/engine/LiveVersionMapTests.java index a84f78ca3d9..9161bc413c8 100644 --- a/core/src/test/java/org/elasticsearch/index/engine/LiveVersionMapTests.java +++ b/core/src/test/java/org/elasticsearch/index/engine/LiveVersionMapTests.java @@ -22,11 +22,13 @@ package org.elasticsearch.index.engine; import org.apache.lucene.util.BytesRefBuilder; import org.apache.lucene.util.RamUsageTester; import org.apache.lucene.util.TestUtil; +import org.elasticsearch.bootstrap.JavaVersion; import org.elasticsearch.test.ESTestCase; public class LiveVersionMapTests extends ESTestCase { public void testRamBytesUsed() throws Exception { + assumeTrue("Test disabled for JDK 9", JavaVersion.current().compareTo(JavaVersion.parse("9")) < 0); LiveVersionMap map = new LiveVersionMap(); for (int i = 0; i < 100000; ++i) { BytesRefBuilder uid = new BytesRefBuilder();