Skip to content

Retry file copy if integrity check has failed#357

Merged
JoQCcoz merged 1 commit intoNIEHS:devfrom
sidoruka:dev
Oct 17, 2024
Merged

Retry file copy if integrity check has failed#357
JoQCcoz merged 1 commit intoNIEHS:devfrom
sidoruka:dev

Conversation

@sidoruka
Copy link
Copy Markdown

Background

From the SmartScope operations, we've observed that some of the file transfers may fail due to networking issues (sizes do not match). In such cases copy procedure shall be retried.

Implementation

This PR changes integrity check handling in copy_file method.

Previously only one copy attempt was made. If sizes of new and old files do not match - process immediately fails. From our tests - it makes sense to retry this operation as it will eventually succeed. Especially when dealing with the network filesystems.

Now, copy operation will be retried with a 2 second timeout and extended logging for integrity failure events.

@JoQCcoz JoQCcoz merged commit f31ff16 into NIEHS:dev Oct 17, 2024
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