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

If two ReadySet instances are started on a MySQL master, it will result in an error: ‘a slave with the same server_uuid/server_id’. #1367

Open
zhugaojian opened this issue Sep 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zhugaojian
Copy link

mysql: 8.0.22-13 Percona Server (GPL)
readyset: stable-240829

2024-09-10T09:13:21.940167Z INFO replicators::mysql_connector::connector: Starting binlog replication next_position=mysql-bin.000047:3271
2024-09-10T09:13:21.945168Z INFO replicators::noria_adapter: MySQL connected
2024-09-10T09:13:21.945177Z INFO replicators::noria_adapter: binlog_position=mysql-bin.000047:3271
2024-09-10T09:13:22.974100Z WARN replicators::noria_adapter: Restarting adapter after error encountered error=Error during replication: Server error: ERROR HY000 (1236): A slave with the same server_uuid/server_id as this slave has connected to the master; the first event 'mysql-bin.000047' at 3271, the last event read from '/mysql/binlog/mysql-bin.000047' at 125, the last byte read from '/mysql/binlog/mysql-bin.000047' at 3271.' 2024-09-10T09:13:22.974135Z ERROR replicators: Error in replication, will retry after timeout error=Error during replication: Server error: ERROR HY000 (1236): A slave with the same server_uuid/server_id as this slave has connected to the master; the first event 'mysql-bin.000047' at 3271, the last event read from '/mysql/binlog/mysql-bin.000047' at 125, the last byte read from '/mysql/binlog/mysql-bin.000047' at 3271.' timeout_sec=1

@zhugaojian zhugaojian added the bug Something isn't working label Sep 10, 2024
@altmannmarcelo
Copy link
Contributor

Hi @zhugaojian .

The problem here is that Readyset (like MySQL) uses a default server_id. We use 4294967240 which is close to the maximum server_id range in order to avoid conflicts with replicas. . If you want to have multiple readyset's connected to the same source server, you need to set --replication-server-id.

Thanks for using Readyset!

@zhugaojian
Copy link
Author

Hi @zhugaojian .

The problem here is that Readyset (like MySQL) uses a default server_id. We use 4294967240 which is close to the maximum server_id range in order to avoid conflicts with replicas. . If you want to have multiple readyset's connected to the same source server, you need to set --replication-server-id.

Thanks for using Readyset!

got it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants