Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-5029

metrics test may fail because the cache is not refreshed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Tools, Build and Test
    • 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.

      Attachments

        Activity

          People

            xiacongling Congling Xia
            xiacongling Congling Xia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: