tanishq-chugh commented on code in PR #6687:
URL: https://github.com/apache/hive/pull/6687#discussion_r3891738993


##########
jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java:
##########
@@ -481,8 +539,32 @@ TGetOperationStatusResp waitForOperationToComplete() 
throws SQLException {
         LOG.debug("Status response: {}", statusResp);
         processOperationStatusResponse(statusResp);
       } catch (SQLException e) {
+        if (connection.isPersistableSession() && lastSql != null
+            && failoverRetries < maxFailoverRetries
+            && (isInvalidOperationHandleError(e) || 
isRetriableExecutionError(e))) {
+          failoverRetries++;
+          LOG.info("Operation lost after failover, reconnecting and 
re-executing (attempt {} of {}): {}",
+              failoverRetries, maxFailoverRetries, lastSql, e);

Review Comment:
   Can we remove the error being logged here? On the console output, it 
initially appears as some error post query re-attempt. 



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to