Efrat19 commented on PR #30127:
URL: https://github.com/apache/flink/pull/30127#issuecomment-7308089782

   > Do you think we should also ensure the missing application summary is 
archived before completing cleanup? 
   
   Good catch, added an archiving step, thanks!
   
   > We would need to handle both cases: the summary is missing, or it was 
already written before failover. What do you think?
   
   On the behavior side - sure, an error will be thrown for either case and the 
recovery will continue, which is the same handling as today's 
`notifyApplicationStatusChange`.
   Logging is tricky though, `FileSystem.create` doesn't provide any structural 
way to tell a `FileAlreadyExistsException` apart from other `IOException`s. So 
each file system reports an existing file differently:
   - The local file system throws `java.nio.file.FileAlreadyExistsException`, 
`LocalFileSystem.java:256`
   - `HadoopFileSystem.create` throws 
`org.apache.hadoop.fs.FileAlreadyExistsException`
   - Native S3 throws a plain `IOException: File already exists`, 
`NativeS3FileSystem.java:459`.
   So I left the generic error message previously used by 
`notifyApplicationStatusChange`, if that's ok.


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

Reply via email to