mirror of https://github.com/apache/lucene.git
SOLR-10199: Solr's Kerberos functionality does not work in Java9 due to dependency on hadoop's AuthenticationFilter which attempt access to JVM protected classes
Signed-off-by: Kevin Risden <krisden@apache.org>
This commit is contained in:
parent
e8a24bc1c9
commit
1a23ab005b
|
@ -33,7 +33,6 @@ import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
// commented 20-July-2018 @LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 12-Jun-2018
|
|
||||||
public class TestSolrCloudWithHadoopAuthPlugin extends SolrCloudAuthTestCase {
|
public class TestSolrCloudWithHadoopAuthPlugin extends SolrCloudAuthTestCase {
|
||||||
protected static final int NUM_SERVERS = 1;
|
protected static final int NUM_SERVERS = 1;
|
||||||
protected static final int NUM_SHARDS = 1;
|
protected static final int NUM_SHARDS = 1;
|
||||||
|
@ -43,7 +42,6 @@ public class TestSolrCloudWithHadoopAuthPlugin extends SolrCloudAuthTestCase {
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setupClass() throws Exception {
|
public static void setupClass() throws Exception {
|
||||||
assumeFalse("Hadoop does not work on Windows", Constants.WINDOWS);
|
assumeFalse("Hadoop does not work on Windows", Constants.WINDOWS);
|
||||||
assumeFalse("FIXME: SOLR-8182: This test fails under Java 9", Constants.JRE_IS_MINIMUM_JAVA9);
|
|
||||||
|
|
||||||
setupMiniKdc();
|
setupMiniKdc();
|
||||||
|
|
||||||
|
@ -139,5 +137,4 @@ public class TestSolrCloudWithHadoopAuthPlugin extends SolrCloudAuthTestCase {
|
||||||
solrClient.getZkStateReader(), true, true, 330);
|
solrClient.getZkStateReader(), true, true, 330);
|
||||||
assertAuthMetricsMinimums(16, 8, 0, 8, 0, 0);
|
assertAuthMetricsMinimums(16, 8, 0, 8, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,6 @@ public class TestZkAclsWithHadoopAuth extends SolrCloudTestCase {
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setupClass() throws Exception {
|
public static void setupClass() throws Exception {
|
||||||
assumeFalse("Hadoop does not work on Windows", Constants.WINDOWS);
|
assumeFalse("Hadoop does not work on Windows", Constants.WINDOWS);
|
||||||
assumeFalse("FIXME: SOLR-8182: This test fails under Java 9", Constants.JRE_IS_MINIMUM_JAVA9);
|
|
||||||
|
|
||||||
System.setProperty(SolrZkClient.ZK_ACL_PROVIDER_CLASS_NAME_VM_PARAM_NAME,
|
System.setProperty(SolrZkClient.ZK_ACL_PROVIDER_CLASS_NAME_VM_PARAM_NAME,
|
||||||
VMParamsAllAndReadonlyDigestZkACLProvider.class.getName());
|
VMParamsAllAndReadonlyDigestZkACLProvider.class.getName());
|
||||||
|
|
Loading…
Reference in New Issue