[6.x] Add WSREP communication link failure for lost connection detection by mbardelmeijer · Pull Request #36668 · laravel/framework · GitHub
Skip to content

[6.x] Add WSREP communication link failure for lost connection detection#36668

Merged
taylorotwell merged 1 commit into
laravel:6.xfrom
mbardelmeijer:patch-2
Mar 19, 2021
Merged

[6.x] Add WSREP communication link failure for lost connection detection#36668
taylorotwell merged 1 commit into
laravel:6.xfrom
mbardelmeijer:patch-2

Conversation

@mbardelmeijer

Copy link
Copy Markdown
Contributor

We use Percona XtraDB Cluster for MySQL master-master replication. If the cluster goes into split brain mode and every node is non-Primary, the following error is triggered:

SQLSTATE[08S01]: Communication link failure: 1047 WSREP has not yet prepared node for application use

Most of the time this is resolved quickly, but using the database driver will get stuck as it doesn't retry the connection.

This PR adds that specific error to the retry connection logic.

@taylorotwell taylorotwell merged commit 5df09b1 into laravel:6.x Mar 19, 2021
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.

2 participants