From baef86b9d3d5f4d3eae94f0d7c33c15ca0e1ca09 Mon Sep 17 00:00:00 2001 From: Yannick Welsch Date: Wed, 11 Jan 2017 10:50:17 +0100 Subject: [PATCH] [TEST] Disable testRamBytesUsed on JDK 9 --- .../org/elasticsearch/index/engine/LiveVersionMapTests.java | 2 ++ 1 file changed, 2 insertions(+) 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();