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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha2
    • None
    • None
    • 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.02.patch
          5 kB
          Varun Saxena
        2. YARN-5911.01.patch
          4 kB
          Varun Saxena

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: