You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Abhishek Rawat (Jira)" <ji...@apache.org> on 2022/05/19 16:53:00 UTC
[jira] [Created] (IMPALA-11304) impala-shell: Make the client retry attempts configurable
Abhishek Rawat created IMPALA-11304:
---------------------------------------
Summary: impala-shell: Make the client retry attempts configurable
Key: IMPALA-11304
URL: https://issues.apache.org/jira/browse/IMPALA-11304
Project: IMPALA
Issue Type: Improvement
Reporter: Abhishek Rawat
In hs2-http mode max tries is hard coded to 4. Would be good to make this option configurable.
{code:java}
class ImpalaHS2Client(ImpalaClient):
"""Impala client. Uses the HS2 protocol plus Impala-specific extensions."""
def __init__(self, *args, **kwargs):
super(ImpalaHS2Client, self).__init__(*args, **kwargs)
self.FINISHED_STATE = TOperationState._NAMES_TO_VALUES["FINISHED_STATE"]
self.ERROR_STATE = TOperationState._NAMES_TO_VALUES["ERROR_STATE"]
self.CANCELED_STATE = TOperationState._NAMES_TO_VALUES["CANCELED_STATE"]
# If connected, this is the handle returned by the OpenSession RPC that needs
# to be passed into most HS2 RPCs.
self.session_handle = None
# Enable retries only for hs2-http protocol.
if self.use_http_base_transport:
# Maximum number of tries for idempotent rpcs.
self.max_tries = 4
else:
self.max_tries = 1
# Minimum sleep interval between retry attempts.
self.min_sleep_interval = 1 {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)