deniskuzZ commented on code in PR #6171:
URL: https://github.com/apache/hive/pull/6171#discussion_r2533588445
##########
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveClientPool.java:
##########
@@ -92,6 +118,11 @@ protected boolean isConnectionException(Exception e) {
e.getMessage().contains("Got exception:
org.apache.thrift.transport.TTransportException");
}
+ private boolean isAccessControlException(MetaException exception) {
+ return exception.getMessage() != null && exception.getMessage().startsWith(
+ "Got exception:
org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException");
Review Comment:
should we just check for contains
"org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException"
?
--
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]