Skip to content

Fix PMM#4330

Merged
sougou merged 2 commits intovitessio:masterfrom
msolters:patch-1
Oct 31, 2018
Merged

Fix PMM#4330
sougou merged 2 commits intovitessio:masterfrom
msolters:patch-1

Conversation

@msolters
Copy link
Copy Markdown
Contributor

There is a race condition where PMM can come up before the mysql.sock file is ready. PMM will fail to start and then permanently crash. Instead, wait for the sock file to be available and then proceed with PMM initialization.

Also, latest fix to the vitess/pmm-client image means we no longer need the || true fix for pmm-admin add.

Mark Solters added 2 commits October 31, 2018 13:55
There is a race condition where PMM can come up before the `mysql.sock` file is ready.  PMM will fail to start and then permanently crash.  Instead, wait for the sock file to be available and then proceed with PMM initialization.

Also, latest fix to the `vitess/pmm-client` image means we no longer need the `|| true` fix for `pmm-admin add`.

Signed-off-by: Mark Solters <msolters@gmail.com>
Installing `procps` in the `vitess/pmm-client` image resolves issue https://jira.percona.com/projects/PMM/issues/PMM-1985

Signed-off-by: Mark Solters <msolters@gmail.com>
@msolters msolters changed the title Let PMM client wait for mysql.sock Fix PMM Oct 31, 2018
@msolters
Copy link
Copy Markdown
Contributor Author

With these changes I can confirm PMM successfully starts up without the errors noted in https://jira.percona.com/projects/PMM/issues/PMM-1985, and MySQL statistics are correctly scraped by pmm-server.

(Percona QAN data is still not available, that might be an orthogonal issue.)

Copy link
Copy Markdown
Member

@derekperkins derekperkins left a comment

Choose a reason for hiding this comment

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

This is a great change to eliminate it previously just ignoring the registration error. LGTM

@sougou sougou merged commit 6fca997 into vitessio:master Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants