Skip to content
This repository has been archived by the owner on Mar 18, 2018. It is now read-only.

copyViaScp cause I/O error with parallel copying #22

Closed
qiyuan-wang opened this issue Apr 28, 2017 · 1 comment
Closed

copyViaScp cause I/O error with parallel copying #22

qiyuan-wang opened this issue Apr 28, 2017 · 1 comment
Labels

Comments

@qiyuan-wang
Copy link

how to reproduce:

  1. set a environment no rsync installed;
  2. make a ConnectionPool with 2 remotes at least;
  3. try copy a folder to remotes' destination.

result:
there should be a fatal error about {foldername}.tmp.tar.gz, 'can not found' or 'can not remove' etc.

reason:
copyViaScp generates tmp.tar file with same folder name. With parallel copying, first call removed the temp file after uploading it to dest, which caused other fail to get the file.

solution:
generates tmp.tar file name with a unique id for each call of copyViaScp.

@gregberge gregberge reopened this Jul 29, 2017
@gregberge
Copy link
Member

@qiyuan-wang will be fixed in #26

@gregberge gregberge added the bug label Aug 14, 2017
@gregberge gregberge mentioned this issue Aug 14, 2017
15 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants