You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2020/10/09 08:34:27 UTC

[GitHub] [hive] kgyrtkirk commented on a change in pull request #1456: HIVE-24106: Abort polling on the operation state when the current thr…

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org