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

BaseContainerManagerTest::waitForNMContainerState timeout accounting is not accurate

    Details

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

      Description

      See below that timeoutSecs is increased twice. We also do a sleep right away before even checking the observed value.

          do {
            Thread.sleep(2000);
       ...
            timeoutSecs += 2;
          } while (!finalStates.contains(currentState)
              && timeoutSecs++ < timeOutMax);
      

        Attachments

        1. YARN-5927.03.patch
          2 kB
          Kai Sasaki
        2. YARN-5917.02.patch
          3 kB
          Kai Sasaki
        3. YARN-5917.01.patch
          2 kB
          Kai Sasaki

          Activity

            People

            • Assignee:
              lewuathe Kai Sasaki
              Reporter:
              miklos.szegedi@cloudera.com Miklos Szegedi
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: