hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Steinbach (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-5217) Add long polling to asynchronous execution in HiveServer2
Date Fri, 08 Nov 2013 06:51:18 GMT

    [ https://issues.apache.org/jira/browse/HIVE-5217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817052#comment-13817052
] 

Carl Steinbach commented on HIVE-5217:
--------------------------------------

I posted the patch to reviewboard and left some comments: https://reviews.apache.org/r/15337/

Based on the test case included with the patch it looks like hive.server2.long.polling.timeout
sets a lower bound on the total round trip time required to execute a getOperationStatus RPC,
e.g. if polling.timeout = 5000 my query can finish after a second but getOperationStatus will
still block for another four seconds before returning. Is this accurate?

> Add long polling to asynchronous execution in HiveServer2
> ---------------------------------------------------------
>
>                 Key: HIVE-5217
>                 URL: https://issues.apache.org/jira/browse/HIVE-5217
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2
>    Affects Versions: 0.13.0
>            Reporter: Vaibhav Gumashta
>            Assignee: Vaibhav Gumashta
>             Fix For: 0.13.0
>
>         Attachments: HIVE-5217.D12801.2.patch, HIVE-5217.D12801.3.patch, HIVE-5217.D12801.4.patch,
HIVE-5217.D12801.5.patch, HIVE-5217.D12801.6.patch
>
>
> [HIVE-4617|https://issues.apache.org/jira/browse/HIVE-4617] provides support for async
execution in HS2. The client gets an operation handle which it can poll to check on the operation
status. However, the polling frequency is entirely left to the client which can be resource
inefficient. Long polling will solve this, by blocking the client request to check the operation
status for a configurable amount of time (a new HS2 config) if the data is not available,
but responding immediately if the data is available.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message