[ https://issues.apache.org/jira/browse/KYLIN-5029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17387014#comment-17387014 ]
ASF GitHub Bot commented on KYLIN-5029: --------------------------------------- zzcclp merged pull request #1683: URL: https://github.com/apache/kylin/pull/1683 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@kylin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org > 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 > Priority: Major > > 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)