Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15286

Concat on a same files deleting the file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0, 3.1.4, 3.2.2
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      on performing concat on same file as source and target , if the file is an inode reference

      FSDirConcatOp#verifySrcFiles 
      if (srcINode == targetINode) {
              throw new HadoopIllegalArgumentException("concat: the src file " + src
                  + " is the same with the target file " + targetIIP.getPath());
        } 

      verifysrcfiles validates if the same file is source and target , but if the file is an inoderefernce the if condition returns false

      because the srcInode is a reference and targetINode is INodefile

        Attachments

        1. HDFS-15286.002.patch
          3 kB
          Hemanth Boyina
        2. HDFS-15286.001.patch
          3 kB
          Hemanth Boyina

          Issue Links

            Activity

              People

              • Assignee:
                hemanthboyina Hemanth Boyina
                Reporter:
                hemanthboyina Hemanth Boyina
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: