Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to force checksum to be recomputed? #1160

Closed
eduardnegru opened this issue Mar 20, 2020 · 4 comments
Closed

[Question] How to force checksum to be recomputed? #1160

eduardnegru opened this issue Mar 20, 2020 · 4 comments

Comments

@eduardnegru
Copy link

I want to force the checksum computation server side. Is this possible in Xrootd? I know that Xrood version < 4, had a feature called recomputeMD5. How to simulate recomputeMD5 in XrootD version >= 4?

@abh3
Copy link
Member

abh3 commented Mar 20, 2020 via email

@eduardnegru
Copy link
Author

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.

@xrootd-dev
Copy link

xrootd-dev commented Mar 22, 2020 via email

@eduardnegru eduardnegru changed the title [Question] How to force checksum recompute? [Question] How to force checksum to be recomputed? Mar 22, 2020
@abh3
Copy link
Member

abh3 commented Mar 31, 2020

This has moved to issue 1161 so I am closing this issue.

@abh3 abh3 closed this as completed Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants