You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/11 08:14:00 UTC
[jira] [Commented] (IMPALA-10309) Use sleep time from a Retry-After
header in Impala Shell
[ https://issues.apache.org/jira/browse/IMPALA-10309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17229825#comment-17229825 ]
ASF subversion and git services commented on IMPALA-10309:
----------------------------------------------------------
Commit ea13e744977c71206c11a54f65d77aeecb55703d in impala's branch refs/heads/master from Andrew Sherman
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=ea13e74 ]
IMPALA-10309: Use sleep time from a Retry-After header in Impala Shell
When Impala Shell receives an http error message (that is a message with
http code greater than or equal to 300), it may sleep for a time before
retrying. If the message contains a 'Retry-After' header that has an
integer value, then this will be used as the time for which to sleep.
The implementation is to use a new HttpError exception (similar to that
used in Impyla) which includes more information from the error message
(including the headers) so that catchers of the exception can use the
'Retry-After' header if appropriate.
TESTING:
Hand testing with a proxy that uses the 'Retry-After' header.
Added new tests that use the fault injection framework in
test_hs2_fault_injection.py
Change-Id: I2b4226e7723d585d61deb4d1d6777aac901bfd93
Reviewed-on: http://gerrit.cloudera.org:8080/16702
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
> Use sleep time from a Retry-After header in Impala Shell
> ---------------------------------------------------------
>
> Key: IMPALA-10309
> URL: https://issues.apache.org/jira/browse/IMPALA-10309
> Project: IMPALA
> Issue Type: Improvement
> Reporter: Andrew Sherman
> Assignee: Andrew Sherman
> Priority: Major
>
> When Impala Shell receives an http error message (that is a message with
> http code greater than or equal to 300), it may sleep for a time before
> retrying. If the message contains a 'Retry-After' header that has an
> integer value, then this should be used as the time for which to sleep.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org