zchovan commented on a change in pull request #1974:
URL: https://github.com/apache/hive/pull/1974#discussion_r578999876



##########
File path: 
service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
##########
@@ -302,7 +301,7 @@ public TRenewDelegationTokenResp 
RenewDelegationToken(TRenewDelegationTokenReq r
             hiveAuthFactory, req.getDelegationToken());
         resp.setStatus(OK_STATUS);
       } catch (HiveSQLException e) {
-        LOG.error("Error obtaining renewing token", e);
+        LOG.error("Failed to renewing token [request: {}]", e);

Review comment:
       nit: "Failed to renew" instead of "Failed to renewing"

##########
File path: 
service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
##########
@@ -283,7 +282,7 @@ public TCancelDelegationTokenResp 
CancelDelegationToken(TCancelDelegationTokenRe
             hiveAuthFactory, req.getDelegationToken());
         resp.setStatus(OK_STATUS);
       } catch (HiveSQLException e) {
-        LOG.error("Error canceling delegation token", e);
+        LOG.error("Failed to canceling delegation token [request: {}]", req, 
e);

Review comment:
       nit: "Failed to cancel" instead of "Failed to canceling"

##########
File path: 
service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
##########
@@ -552,7 +554,7 @@ public TGetInfoResp GetInfo(TGetInfoReq req) throws 
TException {
       resp.setInfoValue(getInfoValue.toTGetInfoValue());
       resp.setStatus(OK_STATUS);
     } catch (Exception e) {
-      LOG.warn("Error getting info: ", e);
+      LOG.warn("Error getting info", e);

Review comment:
       should this be error level log? or "Failed to get info"

##########
File path: 
service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
##########
@@ -536,7 +538,7 @@ public TCloseSessionResp CloseSession(TCloseSessionReq req) 
throws TException {
         context.setSessionHandle(null);
       }
     } catch (Exception e) {
-      LOG.warn("Error closing session: ", e);
+      LOG.warn("Error closing session", e);

Review comment:
       should this be error level log? or maybe change it to "Failed to close 
the session"




----------------------------------------------------------------
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:
[email protected]



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

Reply via email to