[
https://issues.apache.org/jira/browse/HADOOP-18708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17893844#comment-17893844
]
ASF GitHub Bot commented on HADOOP-18708:
-----------------------------------------
shameersss1 commented on code in PR #6884:
URL: https://github.com/apache/hadoop/pull/6884#discussion_r1820860908
##########
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:
Unlike normal s3 client which throws `AccessDeniedException` . S3 encryption
client throws `AWSClientIOException`
> AWS SDK V2 - Implement CSE
> --------------------------
>
> Key: HADOOP-18708
> URL: https://issues.apache.org/jira/browse/HADOOP-18708
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.4.0
> Reporter: Ahmar Suhail
> Assignee: Syed Shameerur Rahman
> Priority: Major
> Labels: pull-request-available
>
> S3 Encryption client for SDK V2 is now available, so add client side
> encryption back in.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]