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

Checksum problem in TPC with pathological file #1483

Closed
snafus opened this issue Jul 16, 2021 · 3 comments
Closed

Checksum problem in TPC with pathological file #1483

snafus opened this issue Jul 16, 2021 · 3 comments
Assignees

Comments

@snafus
Copy link
Contributor

snafus commented Jul 16, 2021

Hi,
During some tests (on 5.3.0 and in 4.X) I noticed that for some very small files (4 bytes, all zero valued bytes), the checksums fail in TPC (with root://).
The checksum of the file is 00040001.

Looking at the logs, in non TPC mode:
xrdcp -f -d3 testfile_4B -C adler32:00040001 root://ceph-gw1.gridpp.rl.ac.uk:1094//dteam:test/jwalder/checksum_test
...
[2021-07-16 10:54:16.395552 +0100][Dump ][Utility ] Checksum for /dteam:test/jwalder/checksum_test checksum: adler32:40001
[2021-07-16 10:54:16.395586 +0100][Info ][Utility ] Checksum verification: succeeded.
...

It can be seen that the preceding "000" is not printed (although the stored checksum is correct).
In the non-TPC mode the verification is successful.

In TPC mode:
xrdcp -f -d3 --tpc delegate only -C adler32:00040001 root://golias100.farm.particle.cz:1094//dpm/farm.particle.cz/home/dteam/test/jwalder_ckstest root://ceph-gw8.gridpp.rl.ac.uk:1094//dteam:test/jwalder/checksum_test

[2021-07-16 10:58:47.215790 +0100][Dump ][Utility ] Checksum for /dteam:test/jwalder/checksum_test checksum: adler32:40001
Run: [ERROR] CheckSum error

This time there is a mismatch - I'm assuming because of the dropped 000 ?
Again, the stored checksum is still correct.

In the last case, if the checksum is requested, but the source not provided, then it works again:
xrdcp -f -d3 --tpc delegate only -C adler32 root://golias100.farm.particle.cz:1094//dpm/farm.particle.cz/home/dteam/test/jwalder_ckstest root://ceph-gw1.gridpp.rl.ac.uk:1094//dteam:test/jwalder/checksum_test

[2021-07-16 11:09:50.834772 +0100][Dump ][Utility ] Checksum for /dteam:test/jwalder/checksum_test checksum: adler32:40001
[2021-07-16 11:09:50.834798 +0100][Info ][Utility ] Checksum verification: succeeded.

I'm not sure where in the code to start looking though, but have (hopefully) attached the test file.
testfile_4B.txt

I'm sure this is a rather pathological case, but hopefully useful to report.
Thanks,
James

@abh3
Copy link
Member

abh3 commented Jul 16, 2021 via email

@simonmichal simonmichal self-assigned this Aug 9, 2021
@simonmichal
Copy link
Contributor

@snafus : thanks for reporting this problem! It should be fixed now by d5d490e.

@simonmichal
Copy link
Contributor

@snafus : can we close this issue?

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