Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1378

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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)

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Colin Patrick McCabe
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development