viirya commented on a change in pull request #35994:
URL: https://github.com/apache/spark/pull/35994#discussion_r836808015



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/HDFSMetadataLog.scala
##########
@@ -138,7 +142,9 @@ class HDFSMetadataLog[T <: AnyRef : ClassTag](sparkSession: 
SparkSession, path:
   def applyFnToBatchByStream[RET](batchId: Long)(fn: InputStream => RET): RET 
= {
     val batchMetadataFile = batchIdToPath(batchId)
     if (fileManager.exists(batchMetadataFile)) {
-      val input = fileManager.open(batchMetadataFile)

Review comment:
       We encountered network blips on this open operation. This also seems 
safer to add retrying. I don't add retrying to other operations to avoid change 
current behaviors.




-- 
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]

Reply via email to