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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.16.0
    • 0.16.0
    • test
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: