Benjamin Mahler created MESOS-881:
-------------------------------------
Summary: Tests are slow because the scheduler attempts to
authenticate before the master realizes it is elected.
Key: MESOS-881
URL: https://issues.apache.org/jira/browse/MESOS-881
Project: Mesos
Issue Type: Improvement
Components: test
Affects Versions: 0.16.0
Reporter: Benjamin Mahler
Fix For: 0.17.0
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.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)