You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2018/04/10 21:17:37 UTC
lucene-solr:branch_7x: SOLR-12211: HdfsDirectoryFactoryTest can fail
by trying to allocate too much direct memory.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x f59770b24 -> 89c364c2d
SOLR-12211: HdfsDirectoryFactoryTest can fail by trying to allocate too much direct memory.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/89c364c2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/89c364c2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/89c364c2
Branch: refs/heads/branch_7x
Commit: 89c364c2de43036782688a84abdf6da0fd4a1389
Parents: f59770b
Author: Mark Miller <ma...@apache.org>
Authored: Tue Apr 10 16:15:59 2018 -0500
Committer: Mark Miller <ma...@apache.org>
Committed: Tue Apr 10 16:17:26 2018 -0500
----------------------------------------------------------------------
.../src/test/org/apache/solr/core/HdfsDirectoryFactoryTest.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/89c364c2/solr/core/src/test/org/apache/solr/core/HdfsDirectoryFactoryTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/core/HdfsDirectoryFactoryTest.java b/solr/core/src/test/org/apache/solr/core/HdfsDirectoryFactoryTest.java
index 51f67fc..2ea85fd 100644
--- a/solr/core/src/test/org/apache/solr/core/HdfsDirectoryFactoryTest.java
+++ b/solr/core/src/test/org/apache/solr/core/HdfsDirectoryFactoryTest.java
@@ -57,6 +57,7 @@ public class HdfsDirectoryFactoryTest extends SolrTestCaseJ4 {
@BeforeClass
public static void setupClass() throws Exception {
dfsCluster = HdfsTestUtil.setupClass(createTempDir().toFile().getAbsolutePath(), false);
+ System.setProperty("solr.hdfs.blockcache.blocksperbank", "1024");
}
@AfterClass
@@ -64,6 +65,7 @@ public class HdfsDirectoryFactoryTest extends SolrTestCaseJ4 {
HdfsTestUtil.teardownClass(dfsCluster);
System.clearProperty("solr.hdfs.home");
System.clearProperty(HdfsDirectoryFactory.NRTCACHINGDIRECTORY_MAXMERGESIZEMB);
+ System.clearProperty("solr.hdfs.blockcache.blocksperbank");
dfsCluster = null;
}