mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
Currently Impala is using private static final values for lock retry/wait: // Number of retries to acquire an HMS ACID lock. private static final int LOCK_RETRIES = 10; // Time interval between retries of acquiring an HMS ACID lock private static final int LOCK_RETRY_WAIT_SECONDS = 3; This patch changes the logic for waiting on locks. It does an exponential backoff starting from 50 ms up to 30 seconds, and the users can configure a maximum total wait time for the locks. This total maximum wait time is 5 minutes (the earlier 30 seconds was too short in real use cases). Testing: * added e2e tests Change-Id: I055b76138dd30b2c40eedb48905cb3bade1438fc Reviewed-on: http://gerrit.cloudera.org:8080/18289 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>