mehakmeet commented on a change in pull request #3263:
URL: https://github.com/apache/hadoop/pull/3263#discussion_r682696838



##########
File path: 
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/AbstractS3AMockTest.java
##########
@@ -58,7 +60,12 @@ public void setup() throws Exception {
     Configuration conf = createConfiguration();
     fs = new S3AFileSystem();
     URI uri = URI.create(FS_S3A + "://" + BUCKET);
-    fs.initialize(uri, conf);
+    try {

Review comment:
       `TestObjectChangeDetectionAttributes`, overrides `createConfiguration()` 
to set metastore, so we should just skip, right?

##########
File path: 
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/contract/s3a/S3AContract.java
##########
@@ -63,6 +68,22 @@ public S3AContract(Configuration conf, boolean 
addContractResource) {
     }
   }
 
+  /**
+   * Skip S3AFS initialization if S3-CSE and S3Guard are enabled.
+   *
+   * @throws IOException throw IOE if it is not due to S3-CSE and S3Guard

Review comment:
       didn't understand this, This means we either skip or throw IOE if not 
caused by CSE, S3Guard incompatibility. 
   Do you mean, I should mention either IOE or 
`AssumptionViolatedException`(skip)?




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