Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/18537#discussion_r125831601
--- Diff:
mllib/src/test/scala/org/apache/spark/ml/recommendation/ALSSuite.scala ---
@@ -777,7 +778,20 @@ class ALSSuite
}
}
-class ALSCleanerSuite extends SparkFunSuite {
+class ALSCleanerSuite extends SparkFunSuite with BeforeAndAfterEach {
+ override def beforeEach(): Unit = {
+ super.beforeEach()
+ // Once 'spark.local.dir' is set, it is cached. Unless this is
manually cleared
--- End diff --
Let's clarify this one a bit more. For example,
```
Once `Utils.getOrCreateLocalRootDirs` is called, it is cached in
`Utils.localRootDirs`.
Unless this is manually cleared before and after a test, it returns the
same directory
set before even if 'spark.local.dir' is configured afterwards.
```
---
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]