-
Notifications
You must be signed in to change notification settings - Fork 110
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
RSDK-8595 Unhealthy resource state #4257
RSDK-8595 Unhealthy resource state #4257
Conversation
672e8b5
to
9c39e06
Compare
9c39e06
to
49661cd
Compare
b749f2b
to
e20c6ba
Compare
e20c6ba
to
76bf3fb
Compare
5c8204f
to
0094e4a
Compare
b102850
to
46345a2
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! Just a final question.
func (w *GraphNode) getLoggerOrGlobal() logging.Logger { | ||
if w.logger == nil { | ||
// This node has not yet been configured with a logger - use the global logger as | ||
// a fall-back. |
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.
[q] Any idea when this happens? Just want to get a sense of when resources are logging in the absence of a logger. Seems like a violation of my mental model of graph node loggers...
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.
i forgot the specifics but there is a lag between when a node is first created and when it receives an initial logger. if we remove the w.logger == nil
guards from this file then we will get a nil-access panic pretty quickly.
I suppose we should use this function through the file instead of relying on the guard to get more uniform behavior -- happy to do this as a follow-up.
EDIT: something tells me the lag is specific to modular resources, since we pass logging configs to them over a unix socket after startup.
Expose an
Unhealthy
state along with the related error onresource.Status
.Details
Depends on