Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7897

Consider using nio.Files for file deletion in TransientBlobCleanupTask

    XMLWordPrintableJSON

Details

    Description

      nio.Files#delete() provides better clue as to why the deletion may fail:

      https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#delete(java.nio.file.Path)

      Depending on the potential exception (FileNotFound), the call to localFile.exists() may be skipped.

      Attachments

        Issue Links

          Activity

            People

              yanghua vinoyang
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: