-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Descriptive stream & consumer health errors #6416
Conversation
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.
In general LGTM - minor nit on using errorf.
server/jetstream_cluster.go
Outdated
js.mu.RUnlock() | ||
return false | ||
return fmt.Errorf("stream assignment or group missing") |
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.
If not formatting used maybe errors.New()?
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.
Fixed.
This should make the output of `healthz` less opaque when there are stream or consumer healthcheck errors. Signed-off-by: Neil Twigg <[email protected]>
0c7fbd3
to
f3c06cb
Compare
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.
LGTM
This should make the output of
healthz
less opaque when there are stream or consumer healthcheck errors. Also more closely aligns the checks between streams and consumers.Signed-off-by: Neil Twigg [email protected]