I have the following scenario: A client creates a file and stores it on a server. That file has a checksum associated and my intuition is that it is stored in a cache. A client wants to check if that file is corrupt by recomputing its checksum. Since checksum computation is intensive the client does not want to download the file and recompute it locally. The client would like the checksum to be recomputed server side and then sent back.

Is the checksum returned from the command below returned from a cache, or the checksum is recomputed every time the client issues that command?

xrdfs root://host:port query checksum path

If it is returned from a cache, what happens if the file gets corrupted after its original checksum is inserted in the cache?

xrdcp's cksum option allows for a validation of checksum, but it throws an error if the file is already present in the destiantion and therefore the checksum computation step is not reached. In my use case, the file is already present in destination, and I just want the server to recompute the file checksum and compare it with the one given by the client.


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

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1160#issuecomment-602024941", "url": "https://github.com/xrootd/xrootd/issues/1160#issuecomment-602024941", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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