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

Concat on INodeRefernce fails with illegal state exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.3.0, 3.1.4, 3.2.2, 2.10.1, 3.4.0
    • 3.3.0, 3.1.4, 3.2.2, 2.10.1, 3.4.0
    • namanode
    • None

    Description

      Performing concat operation on INodeRefernce throwing illegal state exception

      On verifySrcFiles , the src inode was getting converted to Inodefile 

      final INode srcINode = iip.getLastINode();
      final INodeFile srcINodeFile = INodeFile.valueOf(srcINode, src);

      If this INode is an INodeRefernce , it fails at Preconditions.checkstate as the child is an refernce but we have converted that as file

      INodeDirectory#removeChild
        final INode removed = children.remove(i);
        Preconditions.checkState(removed == child); 

      Attachments

        1. HDFS-15276.002.patch
          2 kB
          Hemanth Boyina
        2. HDFS-15276.001.patch
          3 kB
          Hemanth Boyina

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: