You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2018/01/17 22:18:00 UTC

[jira] [Assigned] (MESOS-7016) Make default AWAIT_* duration configurable

     [ https://issues.apache.org/jira/browse/MESOS-7016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Peach reassigned MESOS-7016:
----------------------------------

    Assignee: James Peach

> Make default AWAIT_* duration configurable
> ------------------------------------------
>
>                 Key: MESOS-7016
>                 URL: https://issues.apache.org/jira/browse/MESOS-7016
>             Project: Mesos
>          Issue Type: Improvement
>          Components: libprocess, test
>            Reporter: Benjamin Bannier
>            Assignee: James Peach
>            Priority: Major
>
> libprocess defines a number of helpers {{AWAIT_*}} to wait for a {{process::Future}} reaching terminal states. These helpers are used in tests.
> Currently the default duration to wait before triggering an assertion failure is 15s. This value was chosen as a compromise between failing fast on likely fast developer machines, but also allowing enough time for tests to pass in high-contention environments (e.g., overbooked CI machines).
> If a machine is more overloaded than expected, {{Futures}} might take longer to reach the desired state, and tests could fail. Ultimately we should consider running tests with paused clock to eliminate this source of test flakiness, see MESOS-4101, but as an intermediate measure we should make the default timeout duration configurable.
> A simple approach might be to expose a build variable allowing users to set at configure/cmake time a desired timeout duration for the setup they are building for. This would allow us to define longer timeouts in the CI build scripts, while keeping default timeouts as short as possible.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)