mirror of
https://github.com/apache/impala.git
synced 2025-12-30 03:01:44 -05:00
After queries are cancelled, it can take some time (>30s in some instances) to fully cancel all fragment instances and fully reclaim reserved memory. The test and query limits were exactly matched, so any extra reservation would prevent scheduling, causing the test to frequently time out. With the fix, a 1MB of extra memory is reserved to break the tie thus avoiding the time out. The extra 1MB of memory can be seen in logs printing agg_mem_reserved. Rather than extend timeouts and make the test run longer, add a small buffer to the admission limit to allow for fragment instance cleanup while the test runs. Change-Id: Iaee557ad87d3926589b30d6dcdd850e9af9b3476 Reviewed-on: http://gerrit.cloudera.org:8080/19092 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>