Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5911

DrainDispatcher does not drain all events on stop even if setDrainEventsOnStop is true

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      DrainDispatcher#serviceStop sets the stopped flag first before draining the event queue.
      This means that the thread terminates as soon as it encounters stopped flag as true and does not continue to process leftover events in queue, something which it should do if setDrainEventsOnStop is set.

        Attachments

        1. YARN-5911.01.patch
          4 kB
          Varun Saxena
        2. YARN-5911.02.patch
          5 kB
          Varun Saxena

          Activity

            People

            • Assignee:
              varun_saxena Varun Saxena
              Reporter:
              varun_saxena Varun Saxena
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: