-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[MDEV-35969] reset service manager status #3802
base: 10.5
Are you sure you want to change the base?
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.
Looks good.
Happy with most of this. Good idea. Completely optionally, did you want to go further and for the donor list the joiner node and for the joiner, list the donor? Though the READY=1 is probably harmless, it doesn't appear to be relevant at this point in the server execution. Was there are reason to to include it? ref: https://www.freedesktop.org/software/systemd/man/latest/sd_notify.html#READY=1 |
Sounds reasonable, I will have a look. This should be straight forward for the joins. Can a donor have more than one joiner at a time?
That's true, should not be required here. Just push a new commit with that dropped. But thinking about this... In case of the joiner role, does the code go through |
Hmm, is there an easy way to get the remote joiner or donor name? Or is it available within the Galera plugin only? |
Alternatively... How about setting new state:
This would not set the initial state ("Taking..."), but would be fine fore me as long as it does not read "... ongoing...". |
Might depend on if its a mysqldump sst or another one. Needs a deeper look.
Fairly sure it cannot be.
I haven't looked to closely where it would be. Guess I was hoping it was close.
I'm pretty open to anything factually correct. |
Let's show the difference between donor and joiner.
On WSREP state transfer the status in service manager changes to: WSREP state transfer (role ...) ongoing... This status was not changed after state transfer was complete. Let's change it again to reflect now situation: WSREP state transfer (role ...) comleted.
Just updated again... I think it's better to go with this wording. No idea where to get the remote node's name... Give me a hint if you know. 😉 |
I got as far as grooverdan@91594dd Both are joiner addresses, and if the joiner is aware who the donor its much higher than where the monitor threads are created and hence not really suitable for a restructure. Sorry I suggested it 😼 . |
Description
I am running a Galera cluster with MariaDB 11.4.4. When ever a server does a WSREP state transfer it results in the service manager reporting that WSREP state transfer, visible in status:
However that status is not updated after the state transfer. Instead it should change back to the default status "Taking your SQL requests now...".
Release Notes
How can this PR be tested?
After a state transfer the status should switch back. No idea if this can be tested in current test suite.
Basing the PR against the correct MariaDB version
main
branch.PR quality check