steveloughran commented on a change in pull request #3202:
URL: https://github.com/apache/hadoop/pull/3202#discussion_r671148372
##########
File path:
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
##########
@@ -681,8 +681,8 @@ protected void verifyBucketExists()
trackDurationOfOperation(getDurationTrackerFactory(),
STORE_EXISTS_PROBE.getSymbol(),
() -> s3.doesBucketExist(bucket)))) {
- throw new UnknownStoreException("Bucket " + bucket + " does not exist",
- "/");
+ throw new UnknownStoreException("/", "Bucket " + bucket + " does not "
Review comment:
sorry,I wasn't clear enough. Put in the bucket URI/name (with s3a:// )
as the path; the error message doesn't need to repeat it., e.g
```
new UnknownStoreException("s3a:// + bucket "/", "bucket does not exist");
same for below.
```
Look at `PathIOE` to see how it constructs its exception...it adds the path
before the message if non-null
--
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]