You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Wenzhe Zhou (Jira)" <ji...@apache.org> on 2022/10/25 17:30:00 UTC
[jira] [Resolved] (IMPALA-11304) impala-shell: Make the client retry attempts configurable
[ https://issues.apache.org/jira/browse/IMPALA-11304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenzhe Zhou resolved IMPALA-11304.
----------------------------------
Target Version: Impala 4.2.0
Resolution: Fixed
> 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
> Assignee: Wenzhe Zhou
> Priority: Major
>
> 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.10#820010)