GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/20328
[SPARK-23000] [TEST] Keep Derby DB Location Unchanged After Session Cloning
## What changes were proposed in this pull request?
After session cloning in `TestHive`, the conf of the singleton SparkContext
for derby DB location is changed to a new directory. The directory is created
in `HiveUtils.newTemporaryConfiguration(useInMemoryDerby = false)`.
This PR is to keep the conf value of
`ConfVars.METASTORECONNECTURLKEY.varname` unchanged during the session clone.
## How was this patch tested?
The issue can be reproduced by the command:
> build/sbt -Phive "hive/test-only
org.apache.spark.sql.hive.HiveSessionStateSuite
org.apache.spark.sql.hive.DataSourceWithHiveMetastoreCatalogSuite"
Also added a test case.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark fixTestFailure
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20328.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 #20328
----
commit a7359a9634966851c14be02cbd6468e5c41a4347
Author: gatorsmile <gatorsmile@...>
Date: 2018-01-19T07:57:32Z
fix.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]