Hadoop YARN
  1. Hadoop YARN
  2. YARN-170

NodeManager stop() gets called twice on shutdown

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha
    • Fix Version/s: 2.0.3-alpha, 0.23.6
    • Component/s: nodemanager
    • Labels:
      None

      Description

      The stop method in the NodeManager gets called twice when the NodeManager is shut down via the shutdown hook.

      The first is the stop that gets called directly by the shutdown hook. The second occurs when the NodeStatusUpdaterImpl is stopped. The NodeManager responds to the NodeStatusUpdaterImpl stop stateChanged event by stopping itself. This is so that NodeStatusUpdaterImpl can notify the NodeManager to stop, by stopping itself in response to a request from the ResourceManager

      This could be avoided if the NodeStatusUpdaterImpl were to stop the NodeManager by calling its stop method directly.

      1. YARN-170-3.patch
        13 kB
        Sandy Ryza
      2. YARN-170-20130107.txt
        13 kB
        Vinod Kumar Vavilapalli
      3. YARN-170-2.patch
        12 kB
        Sandy Ryza
      4. YARN-170-1.patch
        8 kB
        Sandy Ryza
      5. YARN-170.patch
        8 kB
        Sandy Ryza

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Sandy Ryza
              Reporter:
              Sandy Ryza
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development