Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HDFS XAttrs (HDFS-2006)
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Should break after the removeXattr op loading.

      Otherwise fsimage loading will fail:

      java.io.IOException: Invalid operation read OP_REMOVE_XATTR
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.applyEditLogOp(FSEditLogLoader.java:816)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java:227)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadFSEdits(FSEditLogLoader.java:136)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.loadEdits(FSImage.java:805)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:665)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:272)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:902)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:651)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:479)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:535)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:694)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:679)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1332)

      1. HDFS-6366.patch
        0.7 kB
        Uma Maheswara Rao G

        Activity

        Hide
        Uma Maheswara Rao G added a comment -

        Attached simple patch to fix it.

        Show
        Uma Maheswara Rao G added a comment - Attached simple patch to fix it.
        Hide
        Yi Liu added a comment -

        Right, Uma, in patch of HDFS-6346, we missed a break for OP_REMOVE_XATTR...

        Show
        Yi Liu added a comment - Right, Uma, in patch of HDFS-6346 , we missed a break for OP_REMOVE_XATTR...
        Hide
        Yi Liu added a comment -

        +1 for the patch. Thanks Uma.

        Show
        Yi Liu added a comment - +1 for the patch. Thanks Uma.
        Hide
        Uma Maheswara Rao G added a comment -

        Thanks for the review Yi. I have just committed this to branch!

        Show
        Uma Maheswara Rao G added a comment - Thanks for the review Yi. I have just committed this to branch!

          People

          • Assignee:
            Uma Maheswara Rao G
            Reporter:
            Uma Maheswara Rao G
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development