[ 
https://issues.apache.org/jira/browse/HIVE-4766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chaoyu Tang updated HIVE-4766:
------------------------------
    Attachment: HIVE-4766.1.patch

Thanks, [~szehon]. I have addressed all the issues you raised in  the patch 
review. The two new configurations added are:
1. hive.server2.thrift.login.timeout -- Timeout for thrift clients during login 
to HiveServer2
2. hive.server2.thrift.exponential.backoff.slot.length -- Binary exponential 
backoff slot time for thrift clients during login to HiveServer2, for retries 
until hitting thrift client timeout
I have also manually tested the time unit conversion as you suggested.
I uploaded this patch to RB: https://reviews.apache.org/r/28416/ , note that 
the empty spaces (red blocks) shown in RB code have been removed in this 
attached patch.

> Support HS2 client login timeout when the thrift thread max# is reached
> -----------------------------------------------------------------------
>
>                 Key: HIVE-4766
>                 URL: https://issues.apache.org/jira/browse/HIVE-4766
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2
>    Affects Versions: 0.10.0
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>              Labels: TODOC15
>             Fix For: 0.15.0, 0.14.1
>
>         Attachments: HIVE-4766.1.patch, HIVE-4766.patch
>
>
> HiveServer2 client (beeline) hangs in login if the thrift max thread# has 
> been reached. It is because the server crashes due to a defect in currently 
> used thrift 0.9.0. When hive is upgraded to use a new version of Thrift (say 
> thrift 1.0), HS2 should support client login timeout instead of current 
> hanging.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to