HyukjinKwon commented on a change in pull request #25333: [SPARK-28597][SS] Add 
config to retry spark streaming's meta log when it met error
URL: https://github.com/apache/spark/pull/25333#discussion_r333822084
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/MicroBatchExecutionSuite.scala
 ##########
 @@ -68,4 +72,43 @@ class MicroBatchExecutionSuite extends StreamTest with 
BeforeAndAfter {
       CheckNewAnswer((25, 1), (30, 1))   // This should not throw the error 
reported in SPARK-24156
     )
   }
+
+  test("Add config to retry spark streaming's meta log when it met") {
+    val s = MemoryStream[Int]
+    // Specified checkpointLocation manually to init metadata file
+    val tmp =
+      new File(System.getProperty("java.io.tmpdir"), 
UUID.randomUUID().toString).getCanonicalPath
 
 Review comment:
   You can just use `withTempDir` and `withTempPath`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to