-
Notifications
You must be signed in to change notification settings - Fork 2k
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
agent crash on Consul check sync failures #24512
Comments
tgross
added a commit
that referenced
this issue
Nov 20, 2024
When the service client syncs to Consul, we accumulate service sync errors in a multierror before reading all the local checks. If the API call to the local checks fails, we either return that error or append it to the multierror and return the set of errors. But `multierror.Error.Len()` doesn't nil-check, so we need to do this ourselves. I've also made a quick pass through the rest of the code base looking for multierror `Len` method calls to see if we have this pattern elsewhere. Fixes: #24512
Wow, dude, you're so quick! Thank you :) Good job. |
tgross
added a commit
that referenced
this issue
Nov 20, 2024
When the service client syncs to Consul, we accumulate service sync errors in a multierror before reading all the local checks. If the API call to the local checks fails, we either return that error or append it to the multierror and return the set of errors. But `multierror.Error.Len()` doesn't nil-check, so we need to do this ourselves. I've also made a quick pass through the rest of the code base looking for multierror `Len` method calls to see if we have this pattern elsewhere. Fixes: #24512
@tgross have you planned to release soon? :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nomad version
1.9.3
Operating system and Environment details
Issue
I've upgraded from Nomad 1.4.3 to 1.9.3 and everything works fine... except that sometimes the server (not clients) crash and I need to restart it (started via a windows service).
Can't understand why.
Nomad Server logs (if appropriate)
The text was updated successfully, but these errors were encountered: