Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-4128

2NN gets stuck in inconsistent state if edit log replay fails in the middle

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha
    • Fix Version/s: 3.0.0, 0.23.7, 2.1.0-beta
    • Component/s: namenode
    • Labels:
      None

      Description

      We saw the following issue in a cluster:

      • The 2NN downloads an edit log segment:
        2012-10-29 12:30:57,433 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Reading /xxxxxxx/current/edits_0000000000049136809-0000000000049176162 expecting start txid #49136809
        
      • It fails in the middle of replay due to an OOME:
        2012-10-29 12:31:21,021 ERROR org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader: Encountered exception on operation AddOp [length=0, path=/xxxxxxxx
        java.lang.OutOfMemoryError: Java heap space
        
      • Future checkpoints then fail because the prior edit log replay only got halfway through the stream:
        2012-10-29 12:32:21,214 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Reading /xxxxx/current/edits_0000000000049176163-0000000000049177224 expecting start txid #49144432
        2012-10-29 12:32:21,216 ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Exception in doCheckpoint
        java.io.IOException: There appears to be a gap in the edit log.  We expected txid 49144432, but got txid 49176163.
        
      1. hdfs-4128.b023.patch
        11 kB
        Kihwal Lee
      2. hdfs-4128.patch
        12 kB
        Kihwal Lee
      3. hdfs-4128.patch
        12 kB
        Kihwal Lee

        Issue Links

          Activity

          Todd Lipcon created issue -
          Kihwal Lee made changes -
          Field Original Value New Value
          Assignee Kihwal Lee [ kihwal ]
          Kihwal Lee made changes -
          Attachment hdfs-4128.patch [ 12571518 ]
          Kihwal Lee made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 3.0.0, 2.0.3-alpha [ 12320356, 12323274 ] 2.0.3-alpha, 3.0.0 [ 12323274, 12320356 ]
          Kihwal Lee made changes -
          Attachment hdfs-4128.b023.patch [ 12571615 ]
          Kihwal Lee made changes -
          Attachment hdfs-4128.patch [ 12571616 ]
          Daryn Sharp made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Target Version/s 3.0.0, 2.0.3-alpha [ 12320356, 12323274 ] 2.0.3-alpha, 3.0.0 [ 12323274, 12320356 ]
          Fix Version/s 3.0.0 [ 12320356 ]
          Fix Version/s 0.23.7 [ 12323955 ]
          Fix Version/s 2.0.4-beta [ 12324031 ]
          Resolution Fixed [ 1 ]
          Todd Lipcon made changes -
          Link This issue is related to HDFS-5074 [ HDFS-5074 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Kihwal Lee
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development