-
Notifications
You must be signed in to change notification settings - Fork 218
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
storage: retry timeout chunks for fscache ondemand path #788
storage: retry timeout chunks for fscache ondemand path #788
Conversation
@kevinXYin , a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/25903 |
@kevinXYin , The CI test is completed, please check result:
Congratulations, your test job passed! |
storage/src/cache/cachedfile.rs
Outdated
@@ -579,7 +579,30 @@ impl FileCacheEntry { | |||
} | |||
|
|||
if !bitmap.wait_for_range_ready(chunk_index, count)? { | |||
Err(eio!("failed to read data from storage backend")) | |||
if !prefetch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion:
if prefetch {
return Err(eio!("failed to read data from storage backend"));
}
...
This function is a little over complex, will try to refactor it later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks , updated.
Yes , this func is too long now , and I remember seems there's still issue for stargz part, may need farther check later.
for fscache ondemand path, if some requested chunks are set to pending by prefetch threads, and wait them timeout, will casue EIO to container side. retry the timeout chunks on ondemand path, minimize EIOs. Signed-off-by: Xin Yin <yinxin.x@bytedance.com>
58ab5a3
to
873d696
Compare
@kevinXYin , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/25933 |
@kevinXYin , The CI test is completed, please check result:
Sorry, your test job failed. Please get the details in the link. |
/retest |
@changweige , the test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/26268 |
@changweige , The CI test is completed, please check result:
Congratulations, your test job passed! |
I didn't figure out why |
for fscache ondemand path, if some requested chunks are set to pending by prefetch threads, and wait them timeout, will casue EIO to container side.
retry the timeout chunks on ondemand path, minimize EIOs.
Signed-off-by: Xin Yin yinxin.x@bytedance.com