Congling Xia created KYLIN-5029:
-----------------------------------
Summary: metrics test may fail because the cache is not refreshed
Key: KYLIN-5029
URL: https://issues.apache.org/jira/browse/KYLIN-5029
Project: Kylin
Issue Type: Improvement
Components: Tools, Build and Test
Reporter: Congling Xia
Assignee: Congling Xia
Tests in _org.apache.kylin.rest.metrics.QueryMetricsTest_ may fail in current
CI processes. There are some "Thread.sleep(..)" in the test code to wait for
metrics cache being refreshed.
After digging into the Hadoop metrics implementation, I find that the default
refreshing interval is 10 seconds. So test thread should sleep for more than 10
seconds to may sure metrics are up-to-date. I checked the sleep intervals in
the test code and they are not greater than 10000 (ms). That's why CI processes
fail accidentally.
It is better to configure metrics refreshing interval to a smaller value.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)