Skip to content

[SDK-615] LargeFileUploader throws CancellationException when paused#94

Merged
twincitiesguy merged 1 commit intomasterfrom
bugfix-SDK-615
Aug 22, 2022
Merged

[SDK-615] LargeFileUploader throws CancellationException when paused#94
twincitiesguy merged 1 commit intomasterfrom
bugfix-SDK-615

Conversation

@twincitiesguy
Copy link
Contributor

In some situations (you provide an ExecutorService, call uploadAsync() and then upload.pause()), LFU will throw a CancellationException to calling code.

This fix makes LargeFileUploader pull the root cause exception when checking for CancellationException from futures, as some executors may wrap the exception multiple times.

…hecking for CancellationException from futures, as some executors may wrap the exception multiple times
@twincitiesguy twincitiesguy merged commit 96efb72 into master Aug 22, 2022
@twincitiesguy twincitiesguy deleted the bugfix-SDK-615 branch August 22, 2022 06:33
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