-
Notifications
You must be signed in to change notification settings - Fork 59
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
If the registry_cache files are corrupted overlaybd fails to load. #239
Comments
@simha-db By now the only the zfile level has implemented a mechanism to evict corrupted data. One is on opening a zfile, if error occurs loading zfile jumptable, all file will be evicted. The other is when crc verification fails, the failed block will be evicted. Of course, that doesn't cover every scenario, any enhancements and fixes are welcome. |
Ah ok - so the validation done is the same as the what i would get if i run
? |
@liulanzheng @BigVan if any block of the Overlaybd blob is corrupted, will |
Also @BigVan do we know how fast the the validation of |
No, it just read the whole file and check the crc32 for each compressed block.
'overlaybd-zfile' will print the block_id which mismatch its checksum, like: 2023/07/25 15:27:09|ERROR|th=0000562F26E92DE0|/root/work/dadi/overlaybd/src/overlaybd/zfile/zfile.cpp:934|zfile_validation_check:crc check error in block 132240 and exit the program with non-zero code. |
Thanks @BigVan for the quick reply. Do we know how much time the verification would take for a 10GB (or some other layer size) to verify? Also is it possible to verify these blocks with multiple threads? |
@BigVan could you clarify the following scenarios? Some background context: we download Overlaybd image blob layers by chunks concurrently and put them into registry_cache.
Our goal is to ensure that we could call the zfile verify to identify any corruption in blob and fail at the container create time instead of causing unexpected application error. |
|
What happened in your environment?
Looks like if the registry_cache has some corrupt files overlaybd fails to create image.
logs below
Looks like it would be good to have logic to delete the file and retry?
What did you expect to happen?
Recover by deleting the file and redownloading.
How can we reproduce it?
What is the version of your Overlaybd?
0.5.3-1.
What is your OS environment?
Ubuntu 20.04
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: