deniskuzZ commented on code in PR #6171:
URL: https://github.com/apache/hive/pull/6171#discussion_r2564256046


##########
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:
   i would use regex to check for the exception class only



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