[ 
https://issues.apache.org/jira/browse/HIVE-24106?focusedWorklogId=497822&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-497822
 ]

ASF GitHub Bot logged work on HIVE-24106:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Oct/20 08:34
            Start Date: 09/Oct/20 08:34
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on a change in pull request #1456:
URL: https://github.com/apache/hive/pull/1456#discussion_r502273628



##########
File path: jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
##########
@@ -360,6 +360,9 @@ TGetOperationStatusResp waitForOperationToComplete() throws 
SQLException {
     // Poll on the operation status, till the operation is complete
     do {
       try {
+        if (Thread.currentThread().isInterrupted()) {
+          throw new SQLException("Interrupted while polling on the operation 
status", "70100");

Review comment:
       I think this error message and code should be placed in the `ErrorMsg` 
class




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 497822)
    Time Spent: 0.5h  (was: 20m)

> Abort polling on the operation state when the current thread is interrupted
> ---------------------------------------------------------------------------
>
>                 Key: HIVE-24106
>                 URL: https://issues.apache.org/jira/browse/HIVE-24106
>             Project: Hive
>          Issue Type: Improvement
>          Components: JDBC
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> If running HiveStatement asynchronously as a task like in a thread or future, 
>  if we interrupt the task,  the HiveStatement would continue to poll on the 
> operation state until finish. It's may better to provide a way to abort the 
> executing in such case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to