liviazhu commented on code in PR #54277:
URL: https://github.com/apache/spark/pull/54277#discussion_r2829817855
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/OperatorStateMetadata.scala:
##########
@@ -331,7 +334,11 @@ class OperatorStateMetadataV2Reader(
private val metadataDirPath =
OperatorStateMetadataV2.metadataDirPath(stateCheckpointPath)
private lazy val fm = CheckpointFileManager.create(metadataDirPath,
hadoopConf)
- fm.mkdirs(metadataDirPath.getParent)
+ if (createMetadataDir && !fm.exists(metadataDirPath.getParent)) {
+ fm.mkdirs(metadataDirPath.getParent)
+ } else if (!createMetadataDir) {
+ logInfo(log"Skipping metadata directory creation
(createMetadataDir=false)")
Review Comment:
Done, added checkpointlocation to log
--
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]