Skip to content

Commit 15fa0a0

Browse files
committed
HADOOP-16547 review other tool commands and have them instantiate the FS if a path was provided and region calculation didn't force this in
I can't think of a good way to test this with a unit test, except maybe one involving delegation tokens Change-Id: I914f2c2b4d3691c5b7c5bdbb98b84ce2dcc3cba0
1 parent 063b404 commit 15fa0a0

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ public int run(String[] args, PrintStream out) throws Exception {
616616
// Validate parameters.
617617
try {
618618
parseDynamoDBRegion(paths);
619+
maybeInitFilesystem(paths);
619620
} catch (ExitUtil.ExitException e) {
620621
errorln(USAGE);
621622
throw e;
@@ -668,6 +669,7 @@ public int run(String[] args, PrintStream out) throws Exception {
668669
checkBucketNameOrDDBTableNameProvided(paths);
669670
checkIfS3BucketIsGuarded(paths);
670671
parseDynamoDBRegion(paths);
672+
maybeInitFilesystem(paths);
671673
} catch (ExitUtil.ExitException e) {
672674
errorln(USAGE);
673675
throw e;

0 commit comments

Comments
 (0)