You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Strengthen error-handling when dealing with transient errors #395
The MCD should not take lightly the decision to degrade a node. All I/O operations subject to a higher possibility of transient failures should be retried (e.g. API requests, file downloads, waiting for events, etc...). We need to (1) audit the whole MCD to make sure this is the case, and/or (2) add some higher-level retry logic to make sure we catch all instances and don't regress on it as new code is added.
changed the title [-]Strengthen error-handling when dealing transient errors[/-][+]Strengthen error-handling when dealing with transient errors[/+]on Feb 7, 2019
This is still open because we want to use the lister from the node informer when getting the node (we're still using the kubeclient and a wait.Pool* to get the nodes and that can fail directly). Other than than that, interactions with kubeclient (and the others) should never result in permanent degrade of the node e.g. transiet errors) so we should wrap and retry + handle rollback if we did something.
I believe a model where we do have transactions and only call the clients to update at the end would be beneficial as we can roll back the whole transaction if we fail to talk to the api server.
Activity
[-]Strengthen error-handling when dealing transient errors[/-][+]Strengthen error-handling when dealing with transient errors[/+]runcom commentedon Feb 7, 2019
we could do some nice type checking on go errors for this but I fear we'll need some wrapping anyway
derekwaynecarr commentedon Feb 11, 2019
log from a variation of a similar problem:
runcom commentedon Feb 18, 2019
This is still open because we want to use the lister from the node informer when getting the node (we're still using the kubeclient and a
wait.Pool*to get the nodes and that can fail directly). Other than than that, interactions with kubeclient (and the others) should never result in permanent degrade of the node e.g. transiet errors) so we should wrap and retry + handle rollback if we did something.I believe a model where we do have transactions and only call the clients to update at the end would be beneficial as we can roll back the whole transaction if we fail to talk to the api server.
daemon: Add GetNode() wrapper which retries on errors