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

JournalNode error: Can't scan a pre-transactional edit log

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 3.3.0, 3.2.1, 3.1.3
    • Component/s: ha
    • Labels:
      None
    • Target Version/s:

      Description

      We saw the following error in JournalNodes a few times before.

      2016-09-22 12:44:24,505 WARN org.apache.hadoop.hdfs.server.namenode.FSImage: Caught exception after scanning through 0 ops from /data/1/dfs/current/ed
      its_inprogress_0000000000000661942 while determining its valid length. Position was 761856
      java.io.IOException: Can't scan a pre-transactional edit log.
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogOp$LegacyReader.scanOp(FSEditLogOp.java:4592)
      at org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream.scanNextOp(EditLogFileInputStream.java:245)
      at org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream.scanEditLog(EditLogFileInputStream.java:355)
      at org.apache.hadoop.hdfs.server.namenode.FileJournalManager$EditLogFile.scanLog(FileJournalManager.java:551)
      at org.apache.hadoop.hdfs.qjournal.server.Journal.scanStorageForLatestEdits(Journal.java:193)
      at org.apache.hadoop.hdfs.qjournal.server.Journal.<init>(Journal.java:153)
      at org.apache.hadoop.hdfs.qjournal.server.JournalNode.getOrCreateJournal(JournalNode.java:90)
      

      The edit file was corrupt, and one possible culprit of this error is a full disk. The JournalNode can't recovered and must be resync manually from other JournalNodes. 

        Attachments

        1. HDFS-14557.branch-3.1.001.patch
          7 kB
          Wei-Chiu Chuang
        2. HDFS-14557.002.patch
          7 kB
          Stephen O'Donnell
        3. HDFS-14557.001.patch
          6 kB
          Stephen O'Donnell

          Activity

            People

            • Assignee:
              sodonnell Stephen O'Donnell
              Reporter:
              weichiu Wei-Chiu Chuang
            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: