hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <>
Subject [jira] [Commented] (HIVE-19971) TestRuntimeStats.testCleanup() is flaky
Date Thu, 28 Jun 2018 13:24:00 GMT


Zoltan Haindrich commented on HIVE-19971:

I was looking for if someone have opened a ticket so far to fix this...and yes :D
I wanted to fix this also....
[~pvary] I also don't like the way this test works - but I haven't seen a better way to do
there were already 2 testruns in which this test didn't fail...and since this will reduce
flakiness I will commit it right away...

> TestRuntimeStats.testCleanup() is flaky
> ---------------------------------------
>                 Key: HIVE-19971
>                 URL:
>             Project: Hive
>          Issue Type: Task
>            Reporter: Andrew Sherman
>            Assignee: Andrew Sherman
>            Priority: Major
>         Attachments: HIVE-19971.1.patch, HIVE-19971.2.patch, HIVE-19971.3.patch, HIVE-19971.4.patch
> This test is timing dependent and sometimes fails. [You can see that it sometimes fails
in otherwise clean runs|].  The
test inserts a stat, sleeps for 2 seconds, inserts another stat, then deletes stats that are
older than 1 second. The test asserts that exactly one stat is deleted. If the deletion is
slow for some reason (perhaps a GC?) then 2 stats will be deleted and the test will fail.
The trouble is that the 1 second window is too small to work consistently.

This message was sent by Atlassian JIRA

View raw message