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

failure to load edits: ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.23.1, 2.0.0-alpha
    • 0.22.1
    • namenode
    • None

    Description

      In doing scale testing of trunk at r1291606, I hit the following:

      java.io.IOException: Error replaying edit log at offset 1354251
      Recent opcode offsets: 1350014 1350176 1350312 1354251
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java:418)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadFSEdits(FSEditLogLoader.java:93)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadFSEdits(FSEditLogLoader.java:79)
      ...
      Caused by: java.lang.ClassCastException: org.apache.hadoop.hdfs.server.namenode.INodeFile cannot be cast to org.apache.hadoop.hdfs.server.namenode.INodeFileUnderConstruction
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java:213)
      ... 13 more

      Attachments

        1. image-with-buggy-append.tgz
          2 kB
          Todd Lipcon
        2. hdfs-2991-0.22.txt
          6 kB
          Konstantin Shvachko
        3. hdfs-2991.txt
          16 kB
          Todd Lipcon
        4. hdfs-2991.txt
          16 kB
          Todd Lipcon

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: