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

Concat on a same files deleting the file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0, 3.1.4, 3.2.2
    • None
    • None
    • 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.001.patch
          3 kB
          Hemanth Boyina
        2. HDFS-15286.002.patch
          3 kB
          Hemanth Boyina

        Issue Links

          Activity

            People

              hemanthboyina Hemanth Boyina
              hemanthboyina Hemanth Boyina
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: