[
https://issues.apache.org/jira/browse/MESOS-8930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581741#comment-16581741
]
Benjamin Mahler commented on MESOS-8930:
----------------------------------------
{code}
// Get the snapshot.
Future<Response> response = http::get(upid, "snapshot", "timeout=2secs");
// Make sure the request is pending before the timeout is exceeded.
//
// TODO(neilc): Replace the `sleep` here with a less flaky
// synchronization method.
os::sleep(Milliseconds(10));
Clock::settle();
{code}
> THREADSAFE_SnapshotTimeout is flaky.
> ------------------------------------
>
> Key: MESOS-8930
> URL: https://issues.apache.org/jira/browse/MESOS-8930
> Project: Mesos
> Issue Type: Bug
> Components: test
> Environment: Ubuntu 16.04
> Reporter: Alexander Rukletsov
> Assignee: Benjamin Mahler
> Priority: Major
> Labels: flaky-test, mesosphere
>
> Observed on ASF CI, might be related to a recent test change
> https://reviews.apache.org/r/66831/
> {noformat}
> 18:23:31 2: [ RUN ] MetricsTest.THREADSAFE_SnapshotTimeout
> 18:23:31 2: I0516 18:23:31.747611 16246 process.cpp:3583] Handling HTTP event
> for process 'metrics' with path: '/metrics/snapshot'
> 18:23:31 2: I0516 18:23:31.796871 16251 process.cpp:3583] Handling HTTP event
> for process 'metrics' with path: '/metrics/snapshot'
> 18:23:46 2: /tmp/SRC/3rdparty/libprocess/src/tests/metrics_tests.cpp:425:
> Failure
> 18:23:46 2: Failed to wait 15secs for response
> 22:57:13 Build timed out (after 300 minutes). Marking the build as failed.
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)