-
Notifications
You must be signed in to change notification settings - Fork 86
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
Replacement logic should ignore process groups that are in maintenance mode #1711
Conversation
in maintenance mode.
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
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.
The changes look good. Could we add a test for this in the operator test suite to make sure we have an e2e test for this behaviour?
I am not sure how to write a stand alone test that tests the functionality of replacing failed process groups? This test "a process group has no address assigned and should be removed" in "operator_test.go" appears to test this functionality but I am not sure. Any other tests here that test this functionality? If not, I think I am going to need pointers as to how to write this test. Thanks! |
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
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 am not sure how to write a stand alone test that tests the functionality of replacing failed process groups? This test "a process group has no address assigned and should be removed" in "operator_test.go" appears to test this functionality but I am not sure. Any other tests here that test this functionality? If not, I think I am going to need pointers as to how to write this test. Thanks!
We have some examples here: https://github.com/FoundationDB/fdb-kubernetes-operator/blob/main/controllers/replace_failed_process_groups_test.go#L634-L950. Let me know if you need some additional guidance.
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.
Changes LGTM 👍
But that's where I have added the test "with maintenance mode enabled"? I am confused now. |
I'm going to merge the changes once the CI completes. |
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
The test failure is unrelated to those changes and is the result of a flaky test (we have an issue to track and fix the test). |
Description
Modify operator replacement logic to ignore process groups that are in maintenance mode.
Type of change
Please select one of the options below.
Discussion
Testing
Manual testing.
Documentation
Follow-up