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
Delete old shutdowns before creating new ones #5629
Conversation
run/e2e-tests tags=es |
I need to clean up the tests but I think the principle works. Just wanted to raise this already to run the e2e tests. |
Test failed due to an issue with the new pipeline. Will try to run manual tests for the time being. |
run/e2e-tests tags=es |
Test run of all es e2e test was successful. There is a more ambitious version of this PR that simply moves the |
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.
Running test locally, but can't see a scenario where clearing old shutdowns where the node is back in the cluster at the start of any upgrade loop would cause future problems.
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 👍
I did some manual testing while keeping an eye on /_nodes/shutdown
to ensure that there was at most one shutdown record. Maybe this is something we could include in a test, ideally in a unit test or/and maybe along the continuous health check. (in another PR ofc)
Thanks @barkbay and @naemono for the quick reviews!
Yes I think I am going to follow up on this PR with something a bit more comprehensive targeting the main branch/next release and will include improved e2e testing as well. I think your idea of an additional continuous health check is really good. |
Moves the cleanup at the beginning of the upgrade function to make sure we don't end up with left over shutdowns and then don't get to clean them up in time because we exit early after node deletions. (cherry picked from commit 53bf9a4)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Moves the cleanup at the beginning of the upgrade function to make sure we don't end up with left over shutdowns and then don't get to clean them up in time because we exit early after node deletions. (cherry picked from commit 53bf9a4)
Moves the cleanup at the beginning of the upgrade function to make sure we don't end up with left over shutdowns and then don't get to clean them up in time because we exit early after node deletions.
Fixes #5628
Moves the cleanup at the beginning of the upgrade function to make sure we don't end up with left over shutdowns and then don't get to clean them up in time because we exit early after node deletions.