Print

Print


Hello Wei and Andy

In v3.3.0-rc2 the problem is somewhat fixed. For example when I use xrd to 
get the checksum and the xrootd server is configured to use an external 
tool (md5sum) I see:
% xrd ir2memfs10:9922 getchecksum /wk/rwm/t/f1
   Error 3005: 6e4b5ac93014ab797be2c9499960f4b3
   The command returned an error.

So the checksum is calculated and returned but there is still an error. 
The xrootd server shows
130111 13:02:23 31432 XrootdsendResult: sent async error to wilko.19150:27@kama

Running with the debugger I noticed that sometimes the checksum is 
returned properly and my suspicion is that the issues is in 
XrdXrootdJob2Do::DoIt() in the two lines:
   lp = jobStream.GetLine();
   rc = theJob->theProg->RunDone(jobStream);
It gets the checksum (lp) but when it does the RunDone() the rc is -EPIPE(-32). 
If I run in the debugger and wait a little bit in line
  rc = theJob->theProg->RunDone(jobStream); before continuing
rc is 0 and all works well.

Cheers,
   Wilko


On Fri, 11 Jan 2013, Wei Yang wrote:

> Update of bug #99711 (project xrootd):
>
>             Assigned to:                   yangw => abh
>
>    _______________________________________________________
>
> Follow-up Comment #4:
>
> I played around a little bit and run into two cases that shows this problem.
>
> 1. the ownership of the files was wrong. I supposed this is not your case.
> 2. only happens if using an external tool on the server side (e.g.
> xrootd.chksum max 3 adler32 /usr/bin/xrdadler32). For every file that doesn't
> have an adler32 in xattr, the first query using xrdadler32 or xrd will fail.
> But the checksum is actually calculated and saved to xattr on the server
> side. So subsequent query will success. removing /usr/bin/xrdadler32 from
> xrootd.chksum line will solve this problem.
>
> so this looks like a bug in xrootd server. Andy, can you take a look?
>
>    _______________________________________________________
>
> Reply to this item at:
>
>  <http://savannah.cern.ch/bugs/?99711>
>
> _______________________________________________
>  Message sent via/by LCG Savannah
>  http://savannah.cern.ch/
>
> ########################################################################
> 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