GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/11744
[SPARK-12653] Re-enable test "SPARK-8489: MissingRequirementError during
reflection"
## What changes were proposed in this pull request?
The purpose of
[SPARK-12653](https://issues.apache.org/jira/browse/SPARK-12653) is re-enabling
a regression test.
Historically, the target regression test is added by
[SPARK-8498](https://github.com/apache/spark/commit/093c34838d1db7a9375f36a9a2ab5d96a23ae683),
but is temporarily disabled by
[SPARK-12615](https://github.com/apache/spark/commit/8ce645d4eeda203cf5e100c4bdba2d71edd44e6a)
due to binary compatibility error.
The following is the current error message at the submitting spark job with
the pre-built `test.jar` file in the target regression test.
```
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.spark.SparkContext$.$lessinit$greater$default$6()Lscala/collection/Map;
```
Simple rebuilding `test.jar` can not recover the purpose of testcase since
we need to support both Scala 2.10 and 2.11 for a while. For example, we will
face the following Scala 2.11 error if we use `test.jar` built by Scala 2.10.
```
Exception in thread "main" java.lang.NoSuchMethodError:
scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror;
```
This PR replace the existing `test.jar` with `test-2.10.jar` and
`test-2.11.jar` and improve the regression test to use the suitable jar file.
## How was this patch tested?
Pass the existing Jenkins test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-12653
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11744.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11744
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]