> + fis = new FileInputStream(file);
> + md5Local = DigestUtils.md5Hex(fis);
> + fis.close();
> + } catch (java.io.IOException e) {
> + e.printStackTrace();
> + /**
> + * The file is no longer available on the local FS.
> + * In some application cases, you might also want to retry this
> instead of finishing the unit of work.
> + */
> + return;
> + }
> +
> + /**
> + * Uploading a file over a network is an inherently fragile
> operation. Over thousands of files, especially in
> + * highly parallel jobs that tax upload bandwidth, a small percent
> of uploads are guaranteed to fail.
> + */
The retry loop is just for md5 mismatches.... will the ByteSourcePayload handle
that? Then I won't need to calculate md5 at all. But I don't think it actually
does that...?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/69/files#r22909300