This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 68bc721 HADOOP-17433. Skipping network I/O in S3A getFileStatus(/)
breaks ITestAssumeRole. (#2600)
68bc721 is described below
commit 68bc721841dd432f3393d66bb900cee692695b18
Author: Steve Loughran <[email protected]>
AuthorDate: Tue Jan 19 17:19:27 2021 +0000
HADOOP-17433. Skipping network I/O in S3A getFileStatus(/) breaks
ITestAssumeRole. (#2600)
Contributed by Steve Loughran.
---
.../src/test/java/org/apache/hadoop/fs/s3a/auth/ITestAssumeRole.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestAssumeRole.java
b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestAssumeRole.java
index 6b2290b..1c8dd77 100644
---
a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestAssumeRole.java
+++
b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestAssumeRole.java
@@ -394,8 +394,10 @@ public class ITestAssumeRole extends AbstractS3ATestBase {
// when S3Guard is enabled, the restricted policy still
// permits S3Guard record lookup, so getFileStatus calls
// will work iff the record is in the database.
+ // probe the store using a path other than /, so a HEAD
+ // request is issued.
forbidden("getFileStatus",
- () -> fs.getFileStatus(ROOT));
+ () -> fs.getFileStatus(methodPath()));
}
forbidden("",
() -> fs.listStatus(ROOT));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]