Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-881

Tests are slow because the scheduler attempts to authenticate before the master realizes it is elected.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.16.0
    • Fix Version/s: 0.16.0
    • Component/s: test
    • Labels:
      None

      Description

      Many of the tests are often slow O(5 seconds) due to the race between the scheduler detecting the leader and the master detecting that it is the leader.

      When the scheduler wins and the master drops the authentication request (because it's not yet leading), the scheduler retries after 5 seconds.

      A few possible solutions here:

      1. Have each test wait for Master::detected (this will bloat a lot of the tests).
      2. Have StartMaster() wait for Master::detected, this is cleaner.

        Attachments

          Activity

            People

            • Assignee:
              xujyan Yan Xu
              Reporter:
              bmahler Benjamin Mahler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: