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

galera_bootstrap: Wait for initial bootstrap start prior creating users #1995

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dirkmueller
Copy link
Contributor

The first start of galera can be a bit slow, so we're hitting a
race with the initial sst user creation which in some cases
might otherwise immediately die with "wsrep state not in Sync".

@dirkmueller dirkmueller requested a review from aspiers as a code owner February 3, 2019 19:05
The first start of galera can be a bit slow, so we're hitting a
race with the initial sst user creation which in some cases
might otherwise immediately die with "wsrep state not in Sync".
Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

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

Looks reasonable, but I haven't tested.

@@ -90,6 +100,29 @@
action :start
end

ruby_block "wait mysql initialisation" do
Copy link
Contributor

Choose a reason for hiding this comment

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

AFAICS this is basically a copy of the code from line 280. Apart from the different user name, static timeout and the not_if condition (which wouldn't hurt here). Could you please turn this into a chef definition with username and timeout as paramters?

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

Successfully merging this pull request may close these issues.

4 participants