wecharyu commented on code in PR #3938: URL: https://github.com/apache/hive/pull/3938#discussion_r1089759237
########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java: ########## @@ -203,11 +203,12 @@ public Result invokeInternal(final Object proxy, final Method method, final Obje } } - if (retryCount >= retryLimit) { + Throwable rootCause = ExceptionUtils.getRootCause(caughtException); + String errorMessage = ExceptionUtils.getMessage(caughtException) + + (rootCause == null ? "" : ("\nRoot cause: " + rootCause)); + if (!RetryingMetaStoreClient.isRecoverableMessage(errorMessage) || retryCount >= retryLimit) { LOG.error("HMSHandler Fatal error: " + ExceptionUtils.getStackTrace(caughtException)); - MetaException me = new MetaException(caughtException.toString()); - me.initCause(caughtException); Review Comment: I think the server logs can get the full stack in this line: https://github.com/apache/hive/blob/d8f9a977cf37afcb2b5cdc7b1ea9e57e26908bc3/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java#L207 The thrown `me` does not log in server actually. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org