dongjoon-hyun commented on a change in pull request #23732: [SPARK-26389][SS] 
Add force delete temp checkpoint configuration
URL: https://github.com/apache/spark/pull/23732#discussion_r254787539
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQueryManager.scala
 ##########
 @@ -221,9 +221,13 @@ class StreamingQueryManager private[sql] (sparkSession: 
SparkSession) extends Lo
       }
     }.getOrElse {
       if (useTempCheckpointLocation) {
-        // Delete the temp checkpoint when a query is being stopped without 
errors.
         deleteCheckpointOnStop = true
-        Utils.createTempDir(namePrefix = s"temporary").getCanonicalPath
+        val tempDir = Utils.createTempDir(namePrefix = 
s"temporary").getCanonicalPath
+        logWarning("Temporary checkpoint location created which is deleted 
normally when" +
+          s" the query didn't fail: $tempDir. If it's required to delete it 
under any" +
+          s" circumstances please set 
${SQLConf.FORCE_DELETE_TEMP_CHECKPOINT_LOCATION.key} to" +
 
 Review comment:
   `circumstances please` -> `circumstances, please`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to