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

HadoopFsCommitter, file rename failure

    XMLWordPrintableJSON

Details

    Description

      When the HDFS file is written, if the part file exists, only false will be returned if the duplicate name fails.Whether to throw an exception that already exists in the part, or print related logs.

       

      ```

      org.apache.flink.runtime.fs.hdfs.HadoopRecoverableFsDataOutputStream.HadoopFsCommitter#commit

      public void commit() throws IOException {
      final Path src = recoverable.tempFile();
      final Path dest = recoverable.targetFile();
      final long expectedLength = recoverable.offset();

      try

      {      //always   return false or ture     fs.rename(src, dest); }

      catch (IOException e)

      { throw new IOException( "Committing file by rename failed: " + src + " to " + dest, e); }

      }

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            todd5167 todd
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: