Skip to content

Commit 02165f1

Browse files
committed
HADOOP-18908. Fix tests
* ignore failing endpoint test pending followup JIRA. * S3guard bucket-info command to fall back to listXattrs(/) if getBucketInfo fails, so as to force a bucket lookup even if the region can be inferred from the endpoint. Change-Id: I1fbcc5371cb13f1d34ec371fd4c29f106aa4a062
1 parent d6e9776 commit 02165f1

File tree

1 file changed

+7
-0
lines changed
  • hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard

1 file changed

+7
-0
lines changed

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/S3GuardTool.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,13 @@ public int run(String[] args, PrintStream out)
406406
// Note and continue.
407407
LOG.debug("failed to get bucket location", e);
408408
println(out, LOCATION_UNKNOWN);
409+
410+
// it may be the bucket is not found; we can't differentiate
411+
// that and handle third party store issues where the API may
412+
// not work.
413+
// Fallback to looking for bucket root attributes.
414+
println(out, "Probing for bucket existence");
415+
fs.listXAttrs(new Path("/"));
409416
}
410417

411418
// print any auth paths for directory marker info

0 commit comments

Comments
 (0)