[ https://issues.apache.org/jira/browse/MESOS-6228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neil Conway updated MESOS-6228: ------------------------------- Description: In the unit tests, {{Metrics()}} does an {{http::get}} of the {{/metrics/snapshot}} endpoint. No {{timeout}} parameter is provided. That means if any metric cannot be fetched, the request hangs for 15 seconds and then dies with a mysterious / unclear error message. Digging into which metric has hung and for what reason requires a lot of time / debugging. Instead, we should specify a reasonable timeout (e.g., 15 seconds) and fail the test if the timeout fires. was: In the unit tests, {{Metrics()}} does an {{http::get}} of the {{/metrics/snapshot}} endpoint. No {{timeout}} parameter is provided. That means if any metric cannot be fetched, the request hangs forever. Instead, we should specify a reasonable timeout (e.g., 15 seconds) and fail the test if the timeout fires. > Add timeout to /metrics/snapshot calls in tests > ----------------------------------------------- > > Key: MESOS-6228 > URL: https://issues.apache.org/jira/browse/MESOS-6228 > Project: Mesos > Issue Type: Bug > Components: tests > Reporter: Neil Conway > Labels: mesosphere, newbie++ > > In the unit tests, {{Metrics()}} does an {{http::get}} of the > {{/metrics/snapshot}} endpoint. No {{timeout}} parameter is provided. That > means if any metric cannot be fetched, the request hangs for 15 seconds and > then dies with a mysterious / unclear error message. Digging into which > metric has hung and for what reason requires a lot of time / debugging. > Instead, we should specify a reasonable timeout (e.g., 15 seconds) and fail > the test if the timeout fires. -- This message was sent by Atlassian JIRA (v6.3.4#6332)