andrew4699 commented on code in PR #437:
URL: https://github.com/apache/polaris/pull/437#discussion_r1833528121
##########
polaris-service/src/main/java/org/apache/polaris/service/catalog/BasePolarisCatalog.java:
##########
@@ -2104,16 +2103,7 @@ private static boolean
isStorageProviderRetryableException(Exception ex) {
private static boolean isAccessDenied(String errorMsg) {
// Corresponding error messages for storage providers Aws/Azure/Gcp
boolean isAccessDenied =
- errorMsg != null
- && (errorMsg
- .toLowerCase(Locale.ENGLISH)
- .contains(IcebergExceptionMapper.AWS_ACCESS_DENIED_HINT)
- || errorMsg
- .toLowerCase(Locale.ENGLISH)
- .contains(IcebergExceptionMapper.AZURE_ACCESS_DENIED_HINT)
- || errorMsg
- .toLowerCase(Locale.ENGLISH)
- .contains(IcebergExceptionMapper.GCP_ACCESS_DENIED_HINT));
+ errorMsg != null &&
IcebergExceptionMapper.containsAnyAccessDeniedHint(errorMsg);
Review Comment:
`containsAnyAccessDeniedHint` does the lower-casing
--
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]