-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Dashboard] Fix dashboard NodeHead._update_node_stats check failure #48746
Conversation
Signed-off-by: Jiajun Yao <[email protected]>
node_info = DataSource.nodes.get(node_id) | ||
if node_info["state"] != "ALIVE": | ||
continue | ||
|
||
node_ids.append(node_id) |
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.
Before node_ids
contains dead nodes but get_node_stats_tasks
doesn't, hence the check failure.
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.
Let's add a regression test
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.
Added to test_node.py
node_info = DataSource.nodes.get(node_id) | ||
if node_info["state"] != "ALIVE": | ||
continue | ||
|
||
node_ids.append(node_id) |
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.
Let's add a regression test
…ay-project#48746) Signed-off-by: Jiajun Yao <[email protected]> Signed-off-by: hjiang <[email protected]>
Why are these changes needed?
will check fail if the node is dead.
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.