Print

Print


Hi Marian,

    xrdcopy needs to check whether the source is a directory if a 
recursive copy from remote source was requested (-r parameter). In order 
to do it, it sends a kXR_stat. If the stat fails, it assumes the source 
is a file and proceeds this way, but it still logs the error to the log 
stream - it's an error after all. Since you did not request a recursive 
copy, this stat should have never been sent in the first place. There 
was a minor bug in config checking that caused xrdcopy to always assume 
that a recursive copy was requested. It's now fixed by:

https://github.com/xrootd/xrootd/commit/cd6cc1019555d86055ca7057044e0e9e987827b9

   Thanks for spotting it.

Cheers,
    Lukasz

On 08/25/2014 11:23 PM, Marian Zvada wrote:
> Hi Folks,
>
> forwarding snip from other thread - I'm not happy to buy how Matevz is
> defending this :):
>
> On 8/21/14, 3:10 PM, Matevz Tadel wrote:
>>> Though, I'm curious why we get error in the process despite the fact
>>> copy
>>> finishes well and things get redirected from FNAL to MIT and then to
>>> your
>>> server. This is xrdcp in "d -2" mode, Matevz do you know what's that
>>> "Handling
>>> error while processing kXR_stat" (**)?
>>
>> No clue ... seems like client issues a stat request on redirector, it
>> should just do open, I don't know. In any case, it's harmless ... xrootd
>> reports a lot of things as errors (and a lot of xrottd code is handling
>> of such errors).
>
> Well, this is annoying. For other tests for example we evaluate stdout
> from xrdcp and "Error" is in this case false positive to us. Here fresh
> xrdcp working attempts leading by "Error response":
>
> # xrdcp -d 1 -f
> root://cms-xrd-global.cern.ch//store/test/xrootd/T3_US_Brown//store/mc/SAM/GenericTTbar/GEN-SIM-RECO/CMSSW_5_3_1_START53_V5-v1/0013/CE4D66EB-5AAE-E111-96D6-003048D37524.root
> /dev/null
> [2014-08-25 23:11:49.403193 +0200][Error  ][XRootD            ]
> [cmsxrootd1.fnal.gov:1094] Handling error while processing kXR_stat
> (path:
> /store/test/xrootd/T3_US_Brown//store/mc/SAM/GenericTTbar/GEN-SIM-RECO/CMSSW_5_3_1_START53_V5-v1/0013/CE4D66EB-5AAE-E111-96D6-003048D37524.root,
> flags: none): [ERROR] Error response.
> [492.2MB/492.2MB][100%][==================================================][6.652MB/s]
>
>
> (xrdcopy gives same "Error" line and copy succeeds)
>
> Could someone explain what's behind this "Error"? How to chase this down?
>
> I notice this after upgrade of client to v4.0.3. "Error" wasn't present
> <=v4.0.0.
>
> Thanks,
> Marian
>
> (**)
> [2014-08-21 21:30:24.440949 +0200][Error  ][XRootD            ]
> [cmsxrootd.fnal.gov:1094] Handling error while processing kXR_stat (path:
> /store/test/xrootd/T3_US_Brown/store/mc/SAM/GenericTTbar/GEN-SIM-RECO/CMSSW_5_3_1_START53_V5-v1/0013/CE4D66EB-5AAE-E111-96D6-003048D37524.root,
>
> flags: none): [ERROR] Error response.
> [2014-08-21 21:30:24.441328 +0200][Debug  ][Utility           ]
> CopyProcess: 1
> jobs to prepare
> [2014-08-21 21:30:24.441382 +0200][Debug  ][Utility           ] Creating a
> classic copy job, from
> root://cmsxrootd.fnal.gov:1094//store/test/xrootd/T3_US_Brown/store/mc/SAM/GenericTTbar/GEN-SIM-RECO/CMSSW_5_3_1_START53_V5-v1/0013/CE4D66EB-5AAE-E111-96D6-003048D37524.root
>
> to file:///dev/null
> [2014-08-21 21:30:24.441439 +0200][Debug  ][Utility           ] Opening
> root://cmsxrootd.fnal.gov:1094//store/test/xrootd/T3_US_Brown/store/mc/SAM/GenericTTbar/GEN-SIM-RECO/CMSSW_5_3_1_START53_V5-v1/0013/CE4D66EB-5AAE-E111-96D6-003048D37524.root
>
> for reading
> [2014-08-21 21:30:24.441473 +0200][Debug  ][File              ]
> [0x17c3b90@root://cmsxrootd.fnal.gov:1094//store/test/xrootd/T3_US_Brown/store/mc/SAM/GenericTTbar/GEN-SIM-RECO/CMSSW_5_3_1_START53_V5-v1/0013/CE4D66EB-5AAE-E111-96D6-003048D37524.root]
>
> Sending an open command
> [2014-08-21 21:30:24.572782 +0200][Debug  ][PostMaster        ] Creating
> new
> channel to: xrootd.cmsaf.mit.edu:1094 1 stream(s)
>
> ########################################################################
> 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

########################################################################
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