LuciferYang commented on code in PR #40613:
URL: https://github.com/apache/spark/pull/40613#discussion_r1153957701


##########
common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/TestShuffleDataContext.java:
##########
@@ -47,8 +47,9 @@ public TestShuffleDataContext(int numLocalDirs, int 
subDirsPerLocalDir) {
   }
 
   public void create() throws IOException {
+    String root = System.getProperty("java.io.tmpdir");
     for (int i = 0; i < localDirs.length; i ++) {
-      localDirs[i] = JavaUtils.createTempDir().getAbsolutePath();
+      localDirs[i] = JavaUtils.createDirectory(root, 
"spark").getAbsolutePath();

Review Comment:
   Will clean up by 
   
   
https://github.com/apache/spark/blob/35503a535771d257b517e7ddf2adfaefefd97dad/common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/TestShuffleDataContext.java#L59-L67



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to