Print

Print


Hi,

I am dCache developer at Fermilab. Recently we had a report of

xrdcp --cksum adle32:value ....

failures when trying to upload files to dCache via dCache XRootD door.

Investigation showed that this is due to capitalization in name of the checksum algorithm.

That is, dCache replies with "ADLER32 value" name + value string and the name "ADLER32" fails to match to "adler32" in xrdcp producing error like so:

[litvinse@fnisd1 ~]$ xrdcp --cksum "adler32:755bd205" /tmp/dcache-2.13.34-1.noarch.rpm root://quantaplex/pnfs/fs/usr/test/good1
[73.01MB/73.01MB][100%][==================================================][73.01MB/s]
Run: [ERROR] CheckSum error
[litvinse@fnisd1 ~]$ echo $?
53

and

[litvinse@fnisd1 ~]$ xrdcp --cksum "adler32:print" /tmp/dcache-2.13.34-1.noarch.rpm root://quantaplex/pnfs/fs/usr/test/good
[73.01MB/73.01MB][100%][==================================================][2.704MB/s]
Run: [ERROR] CheckSum error
[litvinse@fnisd1 ~]$ echo $?
53

whereas:

[litvinse@fnisd1 ~]$ xrdfs root://quantaplex query checksum /pnfs/fs/usr/test/good1
ADLER32 755bd205
[litvinse@fnisd1 ~]$ echo $?
0

Of course we can possibly fix it by returning "adler32" (And I have tested that thus works). But I would like to ask you if you could consider change the client as well.

My understanding is that all what xrdcp should do in case of option

--cksum name:value

is to pass (name,value) pair to server and server will check if name is supported and if not reply with error, else compare the value with calculated checksum on the server side. This means that name could be anything, any string.

Anyway, is it possible to have the string comparison of algorithm names be case insensitive in xrdcp?

Thanks,
Dmitry


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"xrdcp : handling of --cksum option (#459)"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/459"}}}

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