You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2016/12/29 22:00:09 UTC

lucene-solr:branch_6x: LUCENE-7595: Disable another test not compatible with RamUsageTester

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 266ca2640 -> 40a8b4edb


LUCENE-7595: Disable another test not compatible with RamUsageTester


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/40a8b4ed
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/40a8b4ed
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/40a8b4ed

Branch: refs/heads/branch_6x
Commit: 40a8b4edb4cfc7de5b62037fdcb389afa247573d
Parents: 266ca26
Author: Uwe Schindler <us...@apache.org>
Authored: Thu Dec 29 22:56:54 2016 +0100
Committer: Uwe Schindler <us...@apache.org>
Committed: Thu Dec 29 22:59:48 2016 +0100

----------------------------------------------------------------------
 .../core/src/test/org/apache/lucene/search/TestLRUQueryCache.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/40a8b4ed/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
----------------------------------------------------------------------
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 43c8f27..a1053f0 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() {