cloud-fan commented on code in PR #32361:
URL: https://github.com/apache/spark/pull/32361#discussion_r1094189892
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/ResolveWriteToStream.scala:
##########
@@ -89,11 +89,12 @@ object ResolveWriteToStream extends Rule[LogicalPlan] with
SQLConfHelper {
s"""SparkSession.conf.set("${SQLConf.CHECKPOINT_LOCATION.key}",
...)""")
}
}
+ val fileManager = CheckpointFileManager.create(new
Path(checkpointLocation), s.hadoopConf)
+
// If offsets have already been created, we trying to resume a query.
if (!s.recoverFromCheckpointLocation) {
val checkpointPath = new Path(checkpointLocation, "offsets")
- val fs = checkpointPath.getFileSystem(s.hadoopConf)
- if (fs.exists(checkpointPath)) {
+ if (fileManager.exists(checkpointPath)) {
Review Comment:
@viirya @HeartSaVioR do you know why
`FileSystemBasedCheckpointFileManager.exists` calls `fs.getFileStatus`? It's
inconsistent with the old code.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]