You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by kr...@apache.org on 2022/10/16 18:38:43 UTC
[solr] branch main updated: SOLR-16432: Fix hdfs tests to allow illegal access to start HDFS cluster
This is an automated email from the ASF dual-hosted git repository.
krisden pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 6a415aa7818 SOLR-16432: Fix hdfs tests to allow illegal access to start HDFS cluster
6a415aa7818 is described below
commit 6a415aa7818dc6f6e168788681bc8c1c753a9f4d
Author: Kevin Risden <kr...@apache.org>
AuthorDate: Sun Oct 16 14:02:33 2022 -0400
SOLR-16432: Fix hdfs tests to allow illegal access to start HDFS cluster
---
gradle/testing/defaults-tests.gradle | 2 +-
solr/modules/hdfs/build.gradle | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/gradle/testing/defaults-tests.gradle b/gradle/testing/defaults-tests.gradle
index 32044d9a36b..8dfaf4e0c64 100644
--- a/gradle/testing/defaults-tests.gradle
+++ b/gradle/testing/defaults-tests.gradle
@@ -91,7 +91,7 @@ allprojects {
tasks.withType(Test) {
ext {
- testOutputsDir = file("${reports.junitXml.outputLocation}/outputs")
+ testOutputsDir = file("${reports.junitXml.destination}/outputs")
}
// LUCENE-9660: Make it possible to always rerun tests, even if they're incrementally up-to-date.
diff --git a/solr/modules/hdfs/build.gradle b/solr/modules/hdfs/build.gradle
index 8431c81b07e..8bc28f4975f 100644
--- a/solr/modules/hdfs/build.gradle
+++ b/solr/modules/hdfs/build.gradle
@@ -87,3 +87,10 @@ task copySolrCoreTestResources(type: Copy) {
tasks.processTestResources.configure {
dependsOn copySolrCoreTestResources
}
+
+// Hadoop mini cluster doesn't handle reflection properly in JDK 16+
+// https://docs.gradle.org/current/userguide/upgrading_version_7.html#removes_implicit_add_opens_for_test_workers
+tasks.withType(Test).configureEach {
+ jvmArgs(["--add-opens=java.base/java.lang=ALL-UNNAMED",
+ "--add-opens=java.base/java.util=ALL-UNNAMED"])
+}