Skip to content

Commit

Permalink
HDFS-15471. TestHDFSContractMultipartUploader failing (#2252)
Browse files Browse the repository at this point in the history
Contributed by Steve Loughran
(Was: broken by Steve Loughran)

Change-Id: If6a82706f3ea6d802bc6da03c2a2ca734e30388f
  • Loading branch information
steveloughran committed Aug 28, 2020
1 parent f6e1ed4 commit 1b9109d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -807,12 +807,17 @@ public void testConcurrentUploads() throws Throwable {

// now upload part 2.
complete(file, upload2, partHandles2);
// and await the visible length to match
eventually(timeToBecomeConsistentMillis(),
() -> verifyFileLength(file, size2),
new LambdaTestUtils.ProportionalRetryInterval(
CONSISTENCY_INTERVAL,
timeToBecomeConsistentMillis()));

// and await the visible length to match, if this FS is not
// consistent.
final int consistencyDelay = timeToBecomeConsistentMillis();
if (consistencyDelay > 0) {
eventually(consistencyDelay,
() -> verifyFileLength(file, size2),
new LambdaTestUtils.ProportionalRetryInterval(
CONSISTENCY_INTERVAL,
consistencyDelay));
}

verifyContents(file, digest2, size2);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class TestHDFSContractMultipartUploader extends
AbstractContractMultipartUploaderTest {

protected static final Logger LOG =
LoggerFactory.getLogger(AbstractContractMultipartUploaderTest.class);
LoggerFactory.getLogger(TestHDFSContractMultipartUploader.class);

@BeforeClass
public static void createCluster() throws IOException {
Expand Down

0 comments on commit 1b9109d

Please sign in to comment.