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

Rare race condition suspected #91

Open
quakemmo opened this issue Mar 20, 2022 · 1 comment
Open

Rare race condition suspected #91

quakemmo opened this issue Mar 20, 2022 · 1 comment
Labels

Comments

@quakemmo
Copy link

quakemmo commented Mar 20, 2022

Please provide the following details.

OS: Linux Debian 12
PHP: 8.1
php-mysql-replication: 7.0.1
8.0.27 - Oracle MYSQL

On a rare occasion, maybe once every 1000 times, an INSERT event will be triggered by php-mysql-replication, but an immediate SELECT query on the unique ID (passed in the insert values) will return no rows.
The same SELECT query will return a row if subsequently entered manually.

Is the INSERT event first sent to the binlog and THEN to the actual MySQL engine? It feels like there's a race condition there.

Transactions are not used in this particular scenario.

@krowinski
Copy link
Owner

hi, can you replicate this using some code example ?

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

No branches or pull requests

2 participants