Skip to content
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

retry.Retryable(): re-try MySQL error 1047 for a "not yet prepared node" #679

Closed
wants to merge 1 commit into from

Conversation

Al2Klimov
Copy link
Member

During start a Galera cluster complains with "WSREP has not yet prepared node for application use". But the error code, 1047, stands for "Unknown command". So re-try only a "not yet prepared node", but not an "Unknown command".

ref/IP/48748

@NavidSassan Do you want packages with status quo plus this one?

@Al2Klimov Al2Klimov added bug Something isn't working area/connection ref/IP labels Feb 13, 2024
@cla-bot cla-bot bot added the cla/signed label Feb 13, 2024
@NavidSassan
Copy link

yes that would be great, thanks!

@@ -150,6 +150,8 @@ func Retryable(err error) bool {
// 1213: Deadlock found when trying to get lock
// 2006: MySQL server has gone away
return true
case 1047: // Unknown command
return strings.Contains(e.Message, "not yet prepared node")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not match against the fully known message as stated in the PR's initial text?

Furthermore, maybe add a comment to explain this line as it is not self-explaining.

During start a Galera cluster complains with "WSREP has not yet prepared
node for application use". But the error code, 1047, stands for "Unknown
command". So re-try only a "not yet prepared node", but not an "Unknown
command".
@Al2Klimov
Copy link
Member Author

@NavidSassan You can download the Job artifacts here: https://git.icinga.com/packages/icingadb/-/jobs/481689

That includes #665 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants