You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2019/07/18 12:50:00 UTC
[jira] [Comment Edited] (HADOOP-16436) Fix
ITestS3GuardToolLocal#testInitNegativeRead test failure
[ https://issues.apache.org/jira/browse/HADOOP-16436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16887943#comment-16887943 ]
Steve Loughran edited comment on HADOOP-16436 at 7/18/19 12:49 PM:
-------------------------------------------------------------------
Code from the stack
{code}
Preconditions.checkArgument(StringUtils.isNotEmpty(bucket), "bucket");
{code}
# We should improve that error, e.g. "null/empty bucket"
# Clearly caused by HADOOP-16393
Looking at the details, root cause is: the HADOOP-16393 doesn't handle the case where there was no FS passed in, so no bucket to extract/apply
my bad :(
was (Author: stevel@apache.org):
Code from the stack
{code}
Preconditions.checkArgument(StringUtils.isNotEmpty(bucket), "bucket");
{code}
# We should improve that error, e.g. "null/empty bucket"
# Clearly caused by HADOOP-16393
Looking at the details, root cause is: the HADOOP-16393 doesn't handle the case where there was no FS passed in, so no bucket to extract/apply
my bad :)
> Fix ITestS3GuardToolLocal#testInitNegativeRead test failure
> -----------------------------------------------------------
>
> Key: HADOOP-16436
> URL: https://issues.apache.org/jira/browse/HADOOP-16436
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.3.0
> Reporter: Gabor Bota
> Priority: Minor
>
> org.apache.hadoop.fs.s3a.s3guard.ITestS3GuardToolLocal#testInitNegativeRead is failing:
> {noformat}
> [ERROR] Tests run: 30, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 98.684 s <<< FAILURE! - in org.apache.hadoop.fs.s3a.s3guard.ITestS3GuardToolLocal
> [ERROR] testInitNegativeRead(org.apache.hadoop.fs.s3a.s3guard.ITestS3GuardToolLocal) Time elapsed: 1.679 s <<< ERROR!
> java.lang.IllegalArgumentException: bucket
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:141)
> at org.apache.hadoop.fs.s3a.S3AUtils.propagateBucketOptions(S3AUtils.java:1134)
> at org.apache.hadoop.fs.s3a.s3guard.S3GuardTool$Init.run(S3GuardTool.java:487)
> at org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.run(S3GuardTool.java:401)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
> at org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.run(S3GuardTool.java:1672)
> at org.apache.hadoop.fs.s3a.s3guard.AbstractS3GuardToolTestBase.run(AbstractS3GuardToolTestBase.java:137)
> at org.apache.hadoop.fs.s3a.s3guard.AbstractS3GuardToolTestBase$1.call(AbstractS3GuardToolTestBase.java:154)
> at org.apache.hadoop.fs.s3a.s3guard.AbstractS3GuardToolTestBase$1.call(AbstractS3GuardToolTestBase.java:151)
> at org.apache.hadoop.test.LambdaTestUtils.intercept(LambdaTestUtils.java:498)
> at org.apache.hadoop.test.LambdaTestUtils.intercept(LambdaTestUtils.java:384)
> at org.apache.hadoop.fs.s3a.s3guard.AbstractS3GuardToolTestBase.runToFailure(AbstractS3GuardToolTestBase.java:150)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org