shameersss1 commented on code in PR #6884: URL: https://github.com/apache/hadoop/pull/6884#discussion_r1824118899
########## hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AFailureHandling.java: ########## @@ -200,9 +203,14 @@ public void testSingleObjectDeleteNoPermissionsTranslated() throws Throwable { Path path = requireDefaultExternalData(getConfiguration()); S3AFileSystem fs = (S3AFileSystem) path.getFileSystem( getConfiguration()); - AccessDeniedException aex = intercept(AccessDeniedException.class, + Class exceptionClass = AccessDeniedException.class; + if (CSEUtils.isCSEEnabled(getEncryptionAlgorithm( + getTestBucketName(getConfiguration()), getConfiguration()).getMethod())) { + exceptionClass = AWSClientIOException.class; Review Comment: Yes, The semantics is same "Caused by: software.amazon.encryption.s3.S3EncryptionClientException: Access Denied (Service: S3, Status Code: 403," -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org