Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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.