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

DrainDispatcher#await should wait till event has been completely handled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      DrainDispatcher#await should wait till event has been completely handled.
      Currently it only checks for whether event queue has become empty.

      And in many tests we directly check for a state to be changed after calling await.
      Sometimes, the states do not change by the time we check them as event has not been completely handled.

      This is causing test failures such as YARN-3909 and YARN-3910 and may cause other test failures as well.

        Attachments

        1. YARN-3916.01.patch
          3 kB
          Varun Saxena
        2. YARN-3916.02.patch
          3 kB
          Varun Saxena

          Issue Links

            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: