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

Support Domain Checksums #48

Closed
jreadey opened this issue Mar 31, 2020 · 2 comments
Closed

Support Domain Checksums #48

jreadey opened this issue Mar 31, 2020 · 2 comments

Comments

@jreadey
Copy link
Member

jreadey commented Mar 31, 2020

Enable domain checksums - an aggregation of all ETag values for all objects within a domain.
These will be created asynchronously using the same process as with domain info.

@jreadey jreadey mentioned this issue Mar 31, 2020
16 tasks
@jreadey
Copy link
Member Author

jreadey commented Jun 17, 2020

Changed REST api for requesting a rescan: 6b6680a

@jreadey
Copy link
Member Author

jreadey commented Jun 17, 2020

This should be working. An MD5 checksum is computed over all chunks and metadata objects in the domain (other than the domain json (i.e. changing the ACLs doesn't modify the checksum).

hsinfo can be used to show checksum for given domain. E.g.:

$ hsinfo  /home/test_user1/test/snp500.h5
domain: /home/test_user1/test/snp500.h5
owner:           test_user1
id:              g-bc48beca-7da3c61f-34c0-3642f5-2b4e97
last modified:   2020-06-17 11:02:56
last scan:       2020-06-17 11:03:05
md5 sum:         fd2c04b0e4eadb603e310933104b93ee
total_size:      113402127
allocated_bytes: 113400000
metadata_bytes:  1863
num objects:     2
num chunks:      54

Existing domains won't have a checksum computed until the next time they are updated. You can use hsinfo --rescan <domain> to force checksum to be computed.

@jreadey jreadey closed this as completed Jun 17, 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

1 participant