> long contentLength =
> checkNotNull(blob.getMetadata().getContentMetadata().getContentLength(),
> "must provide content-length to use multi-part upload");
> MultipartUploadSlicingAlgorithm algorithm = new
> MultipartUploadSlicingAlgorithm(
> getMinimumMultipartPartSize(), getMaximumMultipartPartSize(),
> getMaximumNumberOfParts());
> long partSize = algorithm.calculateChunkSize(contentLength);
> MultipartUpload mpu = initiateMultipartUpload(container,
> blob.getMetadata(), partSize, overrides);
> int partNumber = 1;
> +
> + int numThreads = 16;
> + if (System.getProperty("jclouds.mpu.parallel.degree") != null) {
> + numThreads =
> Integer.getInteger(System.getProperty("jclouds.mpu.parallel.degree"));
This gets the property twice, with the second call failing. Instead you want:
`Integer.getInteger("jclouds.mpu.parallel.degree"), 16)`.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/975/files/70ba6e0f5aa5c660cab27eb6a450ca7f1e435235#r67774064