-
Notifications
You must be signed in to change notification settings - Fork 751
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
fix(cluster): skip the recovery for warehouses that are not running state. #17193
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.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @BohuTANG and @zhang2014)
src/query/management/src/warehouse/warehouse_mgr.rs
line 378 at r1 (raw file):
if wh.status.to_uppercase() != "RUNNING" { continue; }
What about explicitly specifying the target to compare with? I'm not sure if there is going to be other status in future.
Suggestion:
if wh.status.to_uppercase() == "SUSPENDED" {
continue;
}
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @BohuTANG and @drmingdrmer)
src/query/management/src/warehouse/warehouse_mgr.rs
line 378 at r1 (raw file):
Previously, drmingdrmer (张炎泼) wrote…
What about explicitly specifying the target to compare with? I'm not sure if there is going to be other status in future.
Done.
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @BohuTANG)
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
fix(cluster): fix recovery suspended warehouse
Tests
Type of change
This change is