Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry for individual files in CopyFilesV2 task #15035

Merged
merged 15 commits into from
Jul 16, 2021

Conversation

EzzhevNikita
Copy link
Contributor

@EzzhevNikita EzzhevNikita commented Jul 12, 2021

Task name: CopyFilesV2
Description: Added retry logic to all the methods that are used for working with files. Those methods are receptive to file access issues and retry helps in most cases to address problems with file copying and deleting especially for files that are accessing through UNC paths.

Documentation changes required: (Y/N) Y

Added unit tests: (Y/N) N

Attached related issue: (Y/N) N

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

@EzzhevNikita EzzhevNikita requested a review from a team July 13, 2021 07:18
@EzzhevNikita EzzhevNikita marked this pull request as ready for review July 13, 2021 07:20
@EzzhevNikita EzzhevNikita requested a review from mjroghelia as a code owner July 13, 2021 07:20
Copy link
Contributor

@alexander-smolyakov alexander-smolyakov left a comment

Choose a reason for hiding this comment

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

LGTM and could you please take a look at suggestions?

Tasks/CopyFilesV2/retryHelper.ts Outdated Show resolved Hide resolved
Tasks/CopyFilesV2/retryHelper.ts Outdated Show resolved Hide resolved
Tasks/CopyFilesV2/retryHelper.ts Outdated Show resolved Hide resolved
Tasks/CopyFilesV2/retryHelper.ts Outdated Show resolved Hide resolved
Tasks/CopyFilesV2/copyfiles.ts Outdated Show resolved Hide resolved
@alexander-smolyakov alexander-smolyakov requested a review from a team July 14, 2021 12:31
@EzzhevNikita EzzhevNikita force-pushed the users/EzzhevNikita/copy-files-with-retry branch from d317e21 to 919c0c7 Compare July 15, 2021 11:15
Tasks/CopyFilesV2/copyfiles.ts Outdated Show resolved Hide resolved
Tasks/CopyFilesV2/copyfiles.ts Outdated Show resolved Hide resolved
Tasks/CopyFilesV2/retryHelper.ts Outdated Show resolved Hide resolved
@EzzhevNikita EzzhevNikita merged commit 43c1554 into master Jul 16, 2021
EzzhevNikita added a commit that referenced this pull request Jul 16, 2021
* Added retry logic for copufiles task

* Fixed tests

* Move input in proper place

* Style fixed

* Fix tests

* Addressed review points

* Fix code style

* Remove individual timeouts

* Pass custom values to retryOptions

* Fix formatting

Co-authored-by: Maxim Zaytsev <v-mazayt@microsoft.com>
EzzhevNikita added a commit that referenced this pull request Jul 16, 2021
* Added retry logic for copufiles task

* Fixed tests

* Move input in proper place

* Style fixed

* Fix tests

* Addressed review points

* Fix code style

* Remove individual timeouts

* Pass custom values to retryOptions

* Fix formatting

Co-authored-by: Maxim Zaytsev <v-mazayt@microsoft.com>

Co-authored-by: Maxim Zaytsev <v-mazayt@microsoft.com>
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.

3 participants