You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/05/17 03:20:34 UTC

[GitHub] [spark] attilapiros commented on a diff in pull request #36529: [SPARK-39102][CORE][SQL][DSTREAM] Add checkstyle rules to disabled use of Guava's `Files.createTempDir()`

attilapiros commented on code in PR #36529:
URL: https://github.com/apache/spark/pull/36529#discussion_r874324907


##########
common/network-common/src/main/java/org/apache/spark/network/util/JavaUtils.java:
##########
@@ -362,6 +364,18 @@ public static byte[] bufferToArray(ByteBuffer buffer) {
     }
   }
 
+  /**
+   * Create a temporary directory inside `java.io.tmpdir`. The directory will be
+   * automatically deleted when the VM shuts down.
+   */
+  public static File createTempDir() throws IOException {

Review Comment:
   Regarding 
   - `createTempDir(String: root)`
   - `createTempDir(String namePrefix)`
   
   We can introduce methods with different names: `createTempDirWithRoot`, `createTempDirPrefix` as `createTempDir` an internal method.
   
   But yes we can do it in a separate PR.



-- 
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-unsubscribe@spark.apache.org

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


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