You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/07/24 21:50:06 UTC
svn commit: r1365258 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/core/
lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java
Author: rmuir
Date: Tue Jul 24 19:50:05 2012
New Revision: 1365258
URL: http://svn.apache.org/viewvc?rev=1365258&view=rev
Log:
LUCENE-3892: null these massive static data structures out so they can be GC'ed and wont OOM tests
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/lucene/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java
Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java?rev=1365258&r1=1365257&r2=1365258&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java Tue Jul 24 19:50:05 2012
@@ -43,6 +43,7 @@ import org.apache.lucene.util.Constants;
import org.apache.lucene.util.FixedBitSet;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util._TestUtil;
+import org.junit.AfterClass;
import org.junit.BeforeClass;
/* NOTE: This test focuses on the postings
@@ -315,6 +316,15 @@ public class TestPostingsFormat extends
System.out.println("TEST: done init postings; maxDocID=" + maxDocID + "; " + allTerms.size() + " total terms, across " + fieldInfos.size() + " fields");
}
}
+
+ @AfterClass
+ public static void afterClass() throws Exception {
+ allTerms = null;
+ fieldInfos = null;
+ fields = null;
+ fieldsLive = null;
+ globalLiveDocs = null;
+ }
// TODO maybe instead of @BeforeClass just make a single test run: build postings & index & test it?