Skip to content

Conversation

lizk886
Copy link
Contributor

@lizk886 lizk886 commented Sep 24, 2025

@lizk886 lizk886 marked this pull request as ready for review September 24, 2025 21:35
private void cloudUploadBlocking(String fileToUpload) throws Exception {
String cloudPath = this.cloudSync.toCloudPath(fileToUpload);
try (InputStream localInput = this.localStorage.download(fileToUpload)) {
this.cloudStorage.upload(localInput, cloudPath);

This comment was marked as resolved.

// Be careful as the s3Path may contain the pre-signed S3 token, so do not log the whole path
LOGGER.error("download error: " + ex.getClass().getSimpleName());
promise.fail(new Throwable(ex));
throw ex;

This comment was marked as resolved.

Copy link
Contributor

@clarkxuyang clarkxuyang Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the original wrapping new Throwable(ex) on top of ex is because of
// Be careful as the s3Path may contain the pre-signed S3 token, so do not log the whole path ?

@lizk886 lizk886 changed the title deprecated methods deprecated methods and make optoout files truly parallel download Sep 25, 2025
@lizk886 lizk886 merged commit eea2b66 into main Sep 25, 2025
3 checks passed
@lizk886 lizk886 deleted the wzh-UID2-6108-increase-thread-number-optout branch September 25, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants