Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/7970#discussion_r36344790
--- Diff:
core/src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java
---
@@ -101,7 +101,7 @@ public OutputStream apply(OutputStream stream) {
public void setUp() {
MockitoAnnotations.initMocks(this);
sparkConf = new SparkConf();
- tempDir = new File(Utils.createTempDir$default$1());
+ tempDir = Utils.createTempDir(System.getProperty("java.io.tmpdir"),
"unsafe-test");
--- End diff --
This has to be deleted in `tearDown` too I presume in order to fix this? or
else it's still reusing a same dir?
I checked and there is a similar problem in some other Java tests:
```
JavaSaveLoadSuite
JavaMetastoreDataSourcesSuite
JavaAPISuite
```
---
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]