Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2797

Fix misuses of InputStream#skip in the edit log code

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: ha, namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Fix some misuses of InputStream#skip in the edit log code.

      Also add a test. The existing failover tests only cover the case of graceful shutdown. We should make sure the standby NN can become active even when the final transaction in an edit log is only partially written to disk.

      1. HDFS-2797.001.patch
        5 kB
        Colin Patrick McCabe
      2. HDFS-2797.002.patch
        5 kB
        Colin Patrick McCabe
      3. HDFS-2797.003.patch
        7 kB
        Colin Patrick McCabe

        Issue Links

          Activity

            People

            • Assignee:
              Colin Patrick McCabe
              Reporter:
              Aaron T. Myers
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development