[ 
https://issues.apache.org/jira/browse/HADOOP-17233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

fanrui reassigned HADOOP-17233:
-------------------------------

    Assignee:     (was: fanrui)

> Fix unit test of HDFS-13934
> ---------------------------
>
>                 Key: HADOOP-17233
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17233
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: common
>            Reporter: fanrui
>            Priority: Major
>
> unit test failed of 
> org.apache.hadoop.fs.contract.AbstractContractMultipartUploaderTest#testConcurrentUploads.
> Exception:
> {code:java}
> java.lang.IllegalArgumentExceptionjava.lang.IllegalArgumentException at 
> com.google.common.base.Preconditions.checkArgument(Preconditions.java:127) at 
> org.apache.hadoop.test.LambdaTestUtils$ProportionalRetryInterval.<init>(LambdaTestUtils.java:907)
>  at 
> org.apache.hadoop.fs.contract.AbstractContractMultipartUploaderTest.testConcurrentUploads(AbstractContractMultipartUploaderTest.java:815){code}
> h3. Reason:
> {code:java}
> public ProportionalRetryInterval(int intervalMillis,
>     int maxIntervalMillis) {
>   Preconditions.checkArgument(intervalMillis > 0);
>   Preconditions.checkArgument(maxIntervalMillis > 0);
>   this.intervalMillis = intervalMillis;
>   this.current = intervalMillis;
>   this.maxIntervalMillis = maxIntervalMillis;
> }{code}
> The constructor of ProportionalRetryInterval requires maxIntervalMillis> 0. 
> But TestHDFSContractMultipartUploader does not override the 
> timeToBecomeConsistentMillis method, so maxIntervalMillis = 0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to