Arnab Karmakar has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23822


Change subject: IMPALA-14651: Fix flaky test_loaded_tables_metric due to report 
delay
......................................................................

IMPALA-14651: Fix flaky test_loaded_tables_metric due to report delay

test_loaded_tables_metric() added in IMPALA-13863 was failing
intermittently because it didn't account for the random delay in
ImpaladTableUsageTracker's table usage reporting.
The tracker sleeps for [0.5, 1.5) * REPORT_INTERVAL_MS (5-15s) before
sending usage reports to catalogd, after which the TTL countdown
begins.

The test was waiting for timeout * 2, but the actual max time is:
- Report delay: up to 15s (1.5 * 10s REPORT_INTERVAL_MS)
- Invalidation TTL: timeout
- Metric update buffer: ~5s

Changed the wait timeout from (timeout * 2) to (timeout + 20) to properly
account for the maximum report delay plus TTL.

Change-Id: I7a0a1df5a398a0c0d74c561a0a4b4a0defbac7a7
---
M tests/custom_cluster/test_automatic_invalidation.py
1 file changed, 6 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/22/23822/1
--
To view, visit http://gerrit.cloudera.org:8080/23822
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a0a1df5a398a0c0d74c561a0a4b4a0defbac7a7
Gerrit-Change-Number: 23822
Gerrit-PatchSet: 1
Gerrit-Owner: Arnab Karmakar <[email protected]>

Reply via email to