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 "fanrui (Jira)" <ji...@apache.org> on 2020/08/27 09:46:00 UTC

[jira] [Created] (HADOOP-17233) Fix unit tes of HDFS-13934

fanrui created HADOOP-17233:
-------------------------------

             Summary: Fix unit tes 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
            Assignee: fanrui


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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org