Print

Print


Hello,

With a test at GridKa doing a simple copy of a text file I seem something 
strange. The script I use is:

setenv XRDPATH $BFROOT/package/xrootd/20050623-0016
setenv LD_LIBRARY_PATH $XRDPATH/lib/i386_rhel30
rm -rf toto.txt2
echo "THIS IS A TEST 2" >! toto.txt
$XRDPATH/bin/i386_rhel30/xrdcp -DIDebugLevel 0 toto.txt root://f01-014-106.gridka.de:1094//prod/
$XRDPATH/bin/i386_rhel30/xrdcp -DIDebugLevel 0 root://f01-014-106.gridka.de:1094//prod/toto.txt toto.txt2
cat toto.txt2
rm -rf toto.txt2
echo "ANOTHER TEST" >! toto.txt
$XRDPATH/bin/i386_rhel30/xrdcp -DIDebugLevel 0 toto.txt root://f01-014-106.gridka.de:1094//prod/
$XRDPATH/bin/i386_rhel30/xrdcp -DIDebugLevel 0 root://f01-014-106.gridka.de:1094//prod/toto.txt toto.txt2
cat toto.txt2

And I get:

Overriding 'DebugLevel' with value 0.  Final value: 0
050629 12:22:59 001 Xrd: main: (C) 2004 SLAC INFN xrdcp 0.2 beta
050629 12:22:59 001 Xrd: Create: (C) 2004 SLAC INFN XrdClient 0.3
[xrootd] Total 0.00 MB  |====================| 100.00 % [0.0 Mb/s]
Overriding 'DebugLevel' with value 0.  Final value: 0
050629 12:22:59 001 Xrd: main: (C) 2004 SLAC INFN xrdcp 0.2 beta
050629 12:22:59 001 Xrd: Create: (C) 2004 SLAC INFN XrdClient 0.3
[xrootd] Total 0.00 MB  |====================| 100.00 % [0.0 Mb/s]
THIS IS A TEST 2
Overriding 'DebugLevel' with value 0.  Final value: 0
050629 12:23:00 001 Xrd: main: (C) 2004 SLAC INFN xrdcp 0.2 beta
050629 12:23:00 001 Xrd: Create: (C) 2004 SLAC INFN XrdClient 0.3
[xrootd] Total 0.00 MB  |====================| 100.00 % [0.0 Mb/s]
Overriding 'DebugLevel' with value 0.  Final value: 0
050629 12:23:00 001 Xrd: main: (C) 2004 SLAC INFN xrdcp 0.2 beta
050629 12:23:00 001 Xrd: Create: (C) 2004 SLAC INFN XrdClient 0.3
[xrootd] Total 0.00 MB  |====================| 100.00 % [0.0 Mb/s]
ANOTHER TEST
T 2

Namely, the text file gets corrupted if there is already another 
previous and different version on the server. Is that a bug, or am I 
mishandling xrootd?

Cheers,
   Gregory