Print

Print


xrdcp and xrootd 5.3.0/5.3.1 seems to not report error message correctly. See the following tests. Note in the test, 
* osggridftp01.slac.stanford.edu:2094 is an xrootd proxy running 5.3.0. 
* atlrdr1.slac.stanford.edu is a local storage running 4.12.6. I simply used name "atlrdr1" in the test

$ xrdcp --version
v4.12.6
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
[1024kB/1024kB][100%][==================================================][1024kB/s]  
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
[0B/0B][100%][==================================================][0B/s]  
Run: [ERROR] Server responded with an error: [3011] Unable to create new file; file already exists. (destination)
$ echo $?
54
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://osggridftp01.slac.stanford.edu:2094//xrootd/atlas/tpctest/junk-wei-DD
[0B/0B][100%][==================================================][0B/s]  
Run: [ERROR] Server responded with an error: [3011] Unable to open /xrootd/atlas/tpctest/junk-wei-DD; no such file or directory (destination)
$ echo $?
54
 (in the last xrdcp test, the error message is wrong)

$ xrdfs atlrdr1 rm /xrootd/atlas/tpctest/junk-wei-DD

$ xrdcp --version
v5.3.1
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
[1024kB/1024kB][100%][==================================================][1024kB/s]  
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
$ echo $?
50
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://osggridftp01.slac.stanford.edu:2094//xrootd/atlas/tpctest/junk-wei-DD
$ echo $?
50

In the last two cases, xrdcp gives no error message, but return errno 50. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1508

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1