mirror of
https://github.com/apache/jclouds.git
synced 2025-02-17 15:35:44 +00:00
Issue 430: Removed some timeout values which was left from
development.
This commit is contained in:
parent
8767a8100b
commit
bc7bc99d97
@ -203,7 +203,7 @@ public class ParallelMultipartUploadStrategy implements AsyncMultipartUploadStra
|
|||||||
algorithm.getNextChunkOffset(), remaining, etags,
|
algorithm.getNextChunkOffset(), remaining, etags,
|
||||||
activeParts, futureParts, errors, maxRetries, errorMap, toRetry, latch);
|
activeParts, futureParts, errors, maxRetries, errorMap, toRetry, latch);
|
||||||
}
|
}
|
||||||
latch.await(1, TimeUnit.MINUTES);
|
latch.await();
|
||||||
// handling retries
|
// handling retries
|
||||||
while (errors.get() <= maxRetries && toRetry.size() > 0) {
|
while (errors.get() <= maxRetries && toRetry.size() > 0) {
|
||||||
int atOnce = Math.min(Math.min(toRetry.size(), errors.get()), parallelDegree);
|
int atOnce = Math.min(Math.min(toRetry.size(), errors.get()), parallelDegree);
|
||||||
@ -216,7 +216,7 @@ public class ParallelMultipartUploadStrategy implements AsyncMultipartUploadStra
|
|||||||
failedPart.getOffset(), failedPart.getSize(), etags,
|
failedPart.getOffset(), failedPart.getSize(), etags,
|
||||||
activeParts, futureParts, errors, maxRetries, errorMap, toRetry, retryLatch);
|
activeParts, futureParts, errors, maxRetries, errorMap, toRetry, retryLatch);
|
||||||
}
|
}
|
||||||
retryLatch.await(1, TimeUnit.MINUTES);
|
retryLatch.await();
|
||||||
}
|
}
|
||||||
if (errors.get() > maxRetries) {
|
if (errors.get() > maxRetries) {
|
||||||
throw new BlobRuntimeException(String.format(
|
throw new BlobRuntimeException(String.format(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user