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

Edit log replay should track and report file offsets in case of errors

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.23.0, 1.1.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Occasionally there are bugs or operational mistakes that result in corrupt edit logs which I end up having to repair by hand. In these cases it would be very handy to have the error message also print out the file offsets of the last several edit log opcodes so it's easier to find the right place to edit in the OP_INVALID marker. We could also use this facility to provide a rough estimate of how far along edit log replay the NN is during startup (handy when a 2NN has died and replay takes a while)

        Attachments

        1. hdfs-1378-branch20.txt
          4 kB
          Todd Lipcon
        2. HDFS-1378-b1.004.patch
          9 kB
          Colin P. McCabe
        3. HDFS-1378-b1.003.patch
          5 kB
          Colin P. McCabe
        4. HDFS-1378-b1.002.patch
          4 kB
          Colin P. McCabe
        5. hdfs-1378.2.txt
          38 kB
          Todd Lipcon
        6. hdfs-1378.1.patch
          37 kB
          Aaron T. Myers
        7. hdfs-1378.0.patch
          36 kB
          Aaron T. Myers

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin P. McCabe
                Reporter:
                tlipcon Todd Lipcon
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: