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/11/20 23:27:35 UTC
[jira] [Created] (MESOS-827) Create LOOP_FOR(duration) macro to
guard testing loop from running indefinitely
Yan Xu created MESOS-827:
----------------------------
Summary: 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.16.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)