You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Yan Xu (JIRA)" <ji...@apache.org> on 2013/12/03 21:50:35 UTC

[jira] [Closed] (MESOS-827) Create LOOP_FOR(duration) macro to guard testing loop from running indefinitely

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

Yan Xu closed MESOS-827.
------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 0.16.0)
                   0.17.0

Won't fix in favor of MESOS-837

> Create LOOP_FOR(duration) macro to guard testing loop from running indefinitely
> -------------------------------------------------------------------------------
>
>                 Key: MESOS-827
>                 URL: https://issues.apache.org/jira/browse/MESOS-827
>             Project: Mesos
>          Issue Type: Improvement
>          Components: test
>            Reporter: Yan Xu
>            Assignee: Yan Xu
>             Fix For: 0.17.0
>
>
> We have tests that include loops when we are uncertain how long the expected condition will be met:
> e.g.
> while (future.isPending()) {
>    Clock::advance(...);
>    ...
> }
> or even simply:
> AWAIT_READY(...) when the Clock is paused.
> This is dangerous because if the expectation is set incorrectly the test can run forever with logs written unboundedly. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)