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

Fix TestBackupNode by properly initializing edit log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.3-alpha
    • ha
    • None
    • Reviewed

    Description

      TestBackupNode#testCheckpointNode fails because the following code in FSN#startActiveServices NPEs (resulting in a System.exit) because editLogTailer is set when starting standby services and if ha is not enabled we go directly to the active state. Looks like it should be wrapped with an haEnabled check.

      LOG.info("Catching up to latest edits from old active before " +
         "taking over writer role in edits logs.");
      editLogTailer.catchupDuringFailover();
      

      Attachments

        1. HDFS-3625.patch
          0.7 kB
          Junping Du
        2. HDFS-3625.patch
          1 kB
          Junping Du

        Issue Links

          Activity

            People

              junping_du Junping Du
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: