From 40a8b4edb4cfc7de5b62037fdcb389afa247573d Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Thu, 29 Dec 2016 22:56:54 +0100 Subject: [PATCH] LUCENE-7595: Disable another test not compatible with RamUsageTester --- .../src/test/org/apache/lucene/search/TestLRUQueryCache.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java index 43c8f27cf6f..a1053f07ced 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java @@ -381,6 +381,8 @@ public class TestLRUQueryCache extends LuceneTestCase { // by the cache itself, not cache entries, and we want to make sure that // memory usage is not grossly underestimated. public void testRamBytesUsedConstantEntryOverhead() throws IOException { + assumeFalse("LUCENE-7595: RamUsageTester does not work exact in Java 9 (estimations for maps and lists)", Constants.JRE_IS_MINIMUM_JAVA9); + final LRUQueryCache queryCache = new LRUQueryCache(1000000, 10000000, context -> true); final RamUsageTester.Accumulator acc = new RamUsageTester.Accumulator() {