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

Fix misuses of InputStream#skip in the edit log code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • ha, namenode
    • None
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              atm Aaron Myers
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: