URL:
<http://savannah.cern.ch/bugs/?79853>
Summary: xrdcp ignores write errors on the remote end
Project: XROOTD
Submitted by: apeters
Submitted on: 2011-03-22 17:16
Severity: 4 - Important
Priority: 7 - High
Status: None
Privacy: Public
Assigned to: ljanyst
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Fixed by commit(s):
_______________________________________________________
Details:
We saw a very dangerous bug with the usage of 'xrdcp' which was pointed to by
ALICE.
By default 'xrdcp' runs in asyncronous mode.
In this example I am uploading a file to a full partition on server side:
root@ ~]# xrdcp -v /etc/group root://someserver//data1/daemon/remote1
-DIRequestTimeout 30 -f
Overriding 'RequestTimeout' with value 30. Final value: 30
[xrootd] Total 0.00 MB |====================| 100.00 % [inf MB/s]
[xrdcp] #################################################################
[xrdcp] # Source Name : /etc/group
[xrdcp] # Destination Name : root://someserver//data1/daemon/remote1
[xrdcp] # Data Copied [bytes] : 730
[xrdcp] # Realtime [s] : 0.000000
[xrdcp] #################################################################
root@ ~]# echo $?
0
The client claims everything was fine also the server says:
110322 17:56:18 27685 ofs_write: root.28902:15@XX Unable to write
/data1/daemon/remote1; No space left on device
110322 17:56:18 27685 root.28902:15@XX XrootdProtocol: 0100 discarding 0
bytes
110322 17:56:18 27685 root.28902:15@XX XrootdResponse: 0100 sending err 3005:
Unable to write /data1/daemon/remote1; No space left on device
Now we do the same without asynchronous mode:
[root@ ~]# xrdcp -v /etc/group root://somserver//data1/daemon/remote1
-DIRequestTimeout 30 -DIReadCacheSize 0 -f
Overriding 'RequestTimeout' with value 30. Final value: 30
Overriding 'ReadCacheSize' with value 0. Final value: 0
Error writing to output server.==============| 100.00 % [inf MB/s]
Last server error 3005 ('Unable to write /data1/daemon/remote1; No space left
on device')
[xrdcp] #################################################################
[xrdcp] # Source Name : /etc/group
[xrdcp] # Destination Name :
root://pcitsmd01.cern.ch//data1/daemon/remote1
[xrdcp] # Data Copied [bytes] : 730
[xrdcp] # Realtime [s] : 0.002000
[xrdcp] # Eff.Copy. Rate[MB/s] : 0.365000
[xrdcp] #################################################################
[root@lxbra0301 ~]# echo $?
12
We see atleast a non-0 return code also the summary says everything was
copied.
_______________________________________________________
Reply to this item at:
<http://savannah.cern.ch/bugs/?79853>
_______________________________________________
Message sent via/by LCG Savannah
http://savannah.cern.ch/
|