Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/17869
  
    @heary-cao, could you try to add `Utils.clearLocalRootDirs()` in the first 
of `beforeEach` and in the last of `afterEach` and check out the results?
    
    It looks initial local directory is cached in `Utils.localRootDirs` and 
then it keeps returning this directory set before even after setting 
`conf.set("spark.local.dir", tempDir.getAbsolutePath)`.
    
    Also, I quickly skimmed after running `grep -r "spark.local.dir" . | grep 
Suite | grep ".scala"` and I see two suspicious instances as below:
    
    ```
    ./mllib/src/test/scala/org/apache/spark/ml/recommendation/ALSSuite.scala:   
   conf.set("spark.local.dir", localDir.getAbsolutePath)
    ./mllib/src/test/scala/org/apache/spark/ml/recommendation/ALSSuite.scala:   
   conf.set("spark.local.dir", localDir.getAbsolutePath)
    ```
    
    Could you check out both if you have some time?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to