Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3261

TestHASafeMode fails on HDFS-3042 branch

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: Auto failover (HDFS-3042)
    • Fix Version/s: Auto failover (HDFS-3042)
    • Component/s: test
    • Labels:
      None

      Description

      TestHASafeMode started failing on the HDFS-3042 branch after the commit of HADOOP-8247. The reason is that testEnterSafeModeInANNShouldNotThrowNPE restarts the active node, and then tries to make an RPC to it right after restarting. The RPC picks up a cached connection to the old (restarted) NN, which causes an EOFException. This was just due to a test change that was made in HADOOP-8247, not due to any change made by the actual patch.

      1. hdfs-3261.txt
        1 kB
        Todd Lipcon

        Activity

        Hide
        Todd Lipcon added a comment -

        Patch is simple: goes back to the previous way this test was written, and calls transitionToActive directly on the NN RPC server, instead of going through the actual RPC layer. Verified that the test passes with this fix.

        Show
        Todd Lipcon added a comment - Patch is simple: goes back to the previous way this test was written, and calls transitionToActive directly on the NN RPC server, instead of going through the actual RPC layer. Verified that the test passes with this fix.
        Hide
        Aaron T. Myers added a comment -

        +1, good sleuthing.

        Show
        Aaron T. Myers added a comment - +1, good sleuthing.
        Hide
        Todd Lipcon added a comment -

        Committed this yesterday, just forgot to resolve

        Show
        Todd Lipcon added a comment - Committed this yesterday, just forgot to resolve

          People

          • Assignee:
            Todd Lipcon
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development