wecharyu opened a new pull request, #3938: URL: https://github.com/apache/hive/pull/3938
### What changes were proposed in this pull request? We are trying to expose the root cause of MetaException in the message: 1. Refactor the MetaException message in RetryingHMSHandler with following format: ```sh MetaException(message:One or more instances could not be deleted Root cause: java.sql.SQLIntegrityConstraintViolationException: Cannot delete or update a parent row) ``` 2. Check if the exception can be retry in HMS server. ### Why are the changes needed? 1. Expose root cause for user troubleshooting. 2. Root cause in message can help skip some unnecessary retry in both client and server sides. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Add Unit test. -- 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