Apache Lucene open-source search software
SOLR-4711: enable these tests on java 8
Mark Robert Miller88c177ead68a
diff --git a/solr/core/src/test/org/apache/solr/cloud/CustomCollectionTest.java b/solr/core/src/test/org/apache/solr/cloud/CustomCollectionTest.javaindex d96d6f90bde..a84c9ea99b3 100644--- a/solr/core/src/test/org/apache/solr/cloud/CustomCollectionTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/CustomCollectionTest.java@@ -49,14 +49,10 @@ import org.apache.solr.client.solrj.impl.HttpSolrServer;import org.apache.solr.client.solrj.request.QueryRequest;import org.apache.solr.client.solrj.request.UpdateRequest;import org.apache.solr.client.solrj.response.QueryResponse;-import org.apache.solr.common.SolrException;-import org.apache.solr.common.SolrException.ErrorCode;import org.apache.solr.common.cloud.ClusterState;import org.apache.solr.common.cloud.DocCollection;import org.apache.solr.common.cloud.ImplicitDocRouter;import org.apache.solr.common.cloud.Replica;-import org.apache.solr.common.cloud.Slice;-import org.apache.solr.common.cloud.ZkCoreNodeProps;import org.apache.solr.common.cloud.ZkNodeProps;import org.apache.solr.common.cloud.ZkStateReader;import org.apache.solr.common.params.CollectionParams.CollectionAction;@@ -84,7 +80,6 @@ public class CustomCollectionTest extends AbstractFullDistribZkTestBase {@BeforeClasspublic static void beforeThisClass2() throws Exception {- assumeFalse("FIXME: This test fails under Java 8 all the time, see SOLR-4711", Constants.JRE_IS_MINIMUM_JAVA8);}@Beforediff --git a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsUnloadDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsUnloadDistributedZkTest.javaindex bcb758060f3..7f89b79e94a 100644--- a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsUnloadDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsUnloadDistributedZkTest.java@@ -21,7 +21,6 @@ import java.io.File;import java.io.IOException;import org.apache.hadoop.hdfs.MiniDFSCluster;-import org.apache.lucene.util.Constants;import org.apache.lucene.util.LuceneTestCase.Slow;import org.apache.solr.cloud.UnloadDistributedZkTest;import org.junit.AfterClass;@@ -39,8 +38,6 @@ public class HdfsUnloadDistributedZkTest extends UnloadDistributedZkTest {@BeforeClasspublic static void setupClass() throws Exception {- assumeFalse("FIXME: This test fails under Java 8 all the time, see SOLR-4711", Constants.JRE_IS_MINIMUM_JAVA8);-dfsCluster = HdfsTestUtil.setupClass(new File(TEMP_DIR,HdfsUnloadDistributedZkTest.class.getName() + "_"+ System.currentTimeMillis()).getAbsolutePath());