Impala Public Jenkins has submitted this change and it was merged. ( 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: - Invalidation TTL: timeout - Report delay: up to 15s (1.5 * 10s REPORT_INTERVAL_MS) - Metric update + RPC/serde buffer: ~2s Changed the wait timeout from (timeout * 2) to (timeout + 17) to properly account for the maximum report delay plus TTL and metric update. Change-Id: I7a0a1df5a398a0c0d74c561a0a4b4a0defbac7a7 Reviewed-on: http://gerrit.cloudera.org:8080/23822 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M tests/custom_cluster/test_automatic_invalidation.py 1 file changed, 6 insertions(+), 3 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- 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: merged Gerrit-Change-Id: I7a0a1df5a398a0c0d74c561a0a4b4a0defbac7a7 Gerrit-Change-Number: 23822 Gerrit-PatchSet: 4 Gerrit-Owner: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]>
