-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: return last err from processClient #37
Conversation
I think this patch makes sense. Could you please look at failed job https://github.com/networkservicemesh/fanout/pull/37/checks?check_run_id=3364249178? |
Sure can do, but in a short while, not currently at home. Also could we do something like |
It didn't say why it failed just that it reach max attempts. This was used to debug a error in coredns. This is the issue we found out after we noticed that it was working without cache pluigin. coredns/coredns#4735 Signed-off-by: Vanetta <11271952+xonvanetta@users.noreply.github.com>
@denis-tingaikin bump |
if err == nil { | ||
return &response{client: c, response: msg, start: start, err: err} | ||
} | ||
if f.attempts != 0 { | ||
j++ | ||
} | ||
} | ||
return &response{client: c, response: nil, start: start, err: errors.New("attempt limit has been reached")} | ||
return &response{client: c, response: nil, start: start, err: errors.Wrapf(err, "attempt limit has been reached, last err")} |
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.
Inner error message will be also available:
https://play.golang.org/p/xYkR4ZaMf58
return &response{client: c, response: nil, start: start, err: errors.Wrapf(err, "attempt limit has been reached, last err")} | |
return &response{client: c, response: nil, start: start, err: errors.Wrapf(err, "attempt limit has been reached")} |
@xonvanetta Merged this to help @Funami580 catch the problem with TLS. Be free to resolve comment in separate PR. Thanks! |
It didn't say why it failed just that it reach max attempts.
This was used to debug a error in coredns.
This is the issue we found out after we noticed that it was working
without cache pluigin.
coredns/coredns#4735