-
Notifications
You must be signed in to change notification settings - Fork 149
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
[xrdcp] --posc not working as expected on SIGINT #306
Comments
Well, I will will try to recreate the problem. However, please be aware that the server holds on to the file for 10 minutes (the default) before deleting it. This is to allow the client time to recover from network issues, reconnect and resume copying the file from where it left off. If you are seeing the file after ctl-C that does not mean the file has been persisted. Instead is has been placed in pending status and only the creator should be able to open the file. |
Thanks, I was unaware that the server keeps files for some time after incomplete transfer. In that case, I have not confirmed that the file is in fact persisted beyond this. As for your comment "This is to allow the client time to ... resume copying the file from where it left off", can you point me to any more information about this? I'm rather confused about this and would like to resume interrupted/partial transfers, but it sounds like that is not possible according to your response to #307? |
I can confirm that a file transfer that was interrupted with |
The client can resume a copy operation if the connection to the server Andy On Wed, 25 Nov 2015, Chase wrote:
|
OK, thanks for following up. We will see what is going one. Did you Andy On Wed, 25 Nov 2015, Chase wrote:
|
No, |
OK, I have tried this in various combinations. I have run xrdcp under gdb and killed it after opening the file with the --posc option. I consistently have the server unpersist the file. You should see something like this in the server's log: 151125 18:33:14 25655 ofs_Unpersist: Unpersisting abh.32369:22@rhel6-64b /tmp/motd |
I should note the default delay for unlinking the file is 10 minutes. You can speed this up by specifying ofs.persist hold 10s which should unlink the file after 10 seconds. |
I have tried this in 4.2.2 as well as 4.3.0 as the server. I tried xrdcp at 4.3.0 and 4.2.3 (there is no 4.3.2 so I assume it was a digit swap). In each case, terminating the copy before the close occurred caused the file to be deleted at the server. If this is still an issue, please forward a server log file with the server started in debug mode (i.e. -d command line option) that includes a copy that did not get to actually close the file. I simply cannot reproduce this problem. |
Thanks for looking into it. If it cannot be replicated by others, then I -Chase On Fri, May 13, 2016 at 4:12 PM, Andrew Hanushevsky <
|
Hi,
I'm using xrdcp client v4.3.2, xrootd server v4.2.2.
Perhaps this behavior is consistent with the developers' intent, but it isn't what I expected.
If I am copying a file via
xrdcp --posc ...
, and kill the process mid-transfer usingctrl+C
, the (partial) file is persisted at the destination site.This is not how e.g.
rsync
would behave.If this is the intended effect, it would be nice if the documentation could elaborate on exactly when
--posc
is supposed to do something.The text was updated successfully, but these errors were encountered: