-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-34346][CORE][TESTS][FOLLOWUP] Fix UT by removing core-site.xml #31515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1155,11 +1155,12 @@ class SparkContextSuite extends SparkFunSuite with LocalSparkContext with Eventu | |
| val testKey = "hadoop.tmp.dir" | ||
| val bufferKey = "io.file.buffer.size" | ||
| val hadoopConf0 = new Configuration() | ||
| hadoopConf0.set(testKey, "/tmp/hive_zero") | ||
|
|
||
| val hiveConfFile = Utils.getContextOrSparkClassLoader.getResource("hive-site.xml") | ||
| assert(hiveConfFile != null) | ||
| hadoopConf0.addResource(hiveConfFile) | ||
| assert(hadoopConf0.get(testKey) === "/tmp/hive_one") | ||
| assert(hadoopConf0.get(testKey) === "/tmp/hive_zero") | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is okay because Apache Spark UT aims to test line 1170 ~ 1172.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. w/ this change, As
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @yaooqinn, can you open a PR for that, or push some changes into this PR? I think the test is not flaky but broken. It doesn't look obvious because we don't always run YarnClusterSuite. |
||
| assert(hadoopConf0.get(bufferKey) === "201811") | ||
|
|
||
| val sparkConf = new SparkConf() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still a
Hadoopconf although it'sOverlayproperty.