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

[XCache] Improve cinfo consistency, purge file on read size mismatch. #1349

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

osschar
Copy link
Contributor

@osschar osschar commented Dec 4, 2020

  • When wrong number of bytes is returned in a block read, assume
    that initial file-size estimate was different than the current
    remote file -- purge the file.

  • Make two cinfo checksums: one for the core data and another for downloaded
    state and for access statistics. The logic here is that if core part gets
    corrupted, I could get nonsensical/wrong values for sizes of the following
    arrays and thus I thought it's better to check that first.

  • Add checks for corrupt / nonsensical access stats in previous cinfo file
    versions.

  • Remove support for cinfo file version 1.

  • Do not allow enabling of hdfs mode during configuration parsing:
    this functionality has not been supported for a while and there is
    now a better way of potentially re-implementing it.

- When wrong number of bytes is returned in a block read, assume
  that initial file-size estimate was different than the current
  remote file -- purge the file.

- Make two cinfo checksums: one for the core data and another for downloaded
  state and for access statistics. The logic here is that if core part gets
  corrupted, I could get nonsensical/wrong values for sizes of the following
  arrays and thus I thought it's better to check that first.

- Add checks for corrupt / nonsensical access stats in previous cinfo file
  versions.

- Remove support for cinfo file version 1.

- Do not allow enabling of hdfs mode during configuration parsing:
  this functionality has not been supported for a while and there is
  now a better way of potentially re-implementing it.
@abh3 abh3 merged commit 87f177d into xrootd:master Dec 4, 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

Successfully merging this pull request may close these issues.

None yet

2 participants