Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
So, if
NodeStatus()
always returnspartofCluster=false
for any error why do we no longer need this exit early?i'm not sure i have the context from #633 to properly review this. Maybe @mateoflorido
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.
basically you're saying any error from
NodeStatus
at all exits early-- and that's wrong?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.
So,
WaitUntilReady
will retry if the bool return value isfalse
. If something in the error return value is returned, then this exits immediately.NodeStatus
second return value indicates if the node is part of a cluster or not. However, it will also returnfalse
for this argument if an error is returned (third return value). The current implementation would always exit withNode is notpart of cluster
even ifNodeStatus
returned and error (which means the "is part of cluster" return value is not valid).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.
AHH! i didn't look down at lines 70-71. Thank you