-
Notifications
You must be signed in to change notification settings - Fork 251
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
pkg/chunked/GetDiffer must differentiate between failures and errors that can be ignored #2115
Comments
@mtrmac what do you think? |
For context, what are the “ignorable” error situations? I can see:
And those are currently always ignorable, but might be fatal in an enforcing configuration, I guess. Are there any other significant classes of ignorable errors? Yes, having a special error type (returned by |
yes, the only "ignorable" errors are the ones where the image doesn't support partial pulls and there is no conversion enabled. Missing registry support should be a hard error when |
define a new error type so that the caller can determine whether it is safe to ignore the error and retrieve the resource fully. Closes: containers#2115 Signed-off-by: Giuseppe Scrivano <[email protected]>
thanks, opened a PR to implement it: #2118 |
define a new error type so that the caller can determine whether it is safe to ignore the error and retrieve the resource fully. Closes: containers#2115 Signed-off-by: Giuseppe Scrivano <[email protected]>
define a new error type so that the caller can determine whether it is safe to ignore the error and retrieve the resource fully. Closes: containers#2115 Signed-off-by: Giuseppe Scrivano <[email protected]>
define a new error type so that the caller can determine whether it is safe to ignore the error and retrieve the resource fully. Closes: containers#2115 Signed-off-by: Giuseppe Scrivano <[email protected]>
define a new error type so that the caller can determine whether it is safe to ignore the error and retrieve the resource fully. Closes: containers#2115 Signed-off-by: Giuseppe Scrivano <[email protected]>
define a new error type so that the caller can determine whether it is safe to ignore the error and retrieve the resource fully. Closes: containers#2115 Signed-off-by: Giuseppe Scrivano <[email protected]>
we currently do not differentiate between critical errors (hard failures) and ignorable errors, so that the caller (containers/image in our case) can fallback to using the traditional pull code path.
Especially with composefs and fs-verity, if any error happens in this phase, the entire pull operation must fail and containers/image must not attempt any fallback.
Suggestion: define a new error typefor the errors that can be ignored and treat anything else as an hard failure, so that the caller can differentiate between them.
The text was updated successfully, but these errors were encountered: