We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
for MySQL5.6.20 have not compatible with MySQL5.5, so it will no kill zombie thread without the slave uuid
The text was updated successfully, but these errors were encountered:
fix this bug for using set @slave_uuid="${uuid}" command before dump
Sorry, something went wrong.
我看一下,可能也是因为这个很多用户反馈链接异常断开的一个问题
可以参考下MySQL源码的实现,在建立IO线程到Master的时候,会设置一下uuid
/** Set user variables after connecting to the master. @param mysql MYSQL to request uuid from master. @param mi Master_info to set master_uuid @return 0: Success, 1: Fatal error, 2: Network error. */ int io_thread_init_commands(MYSQL *mysql, Master_info *mi) { char query[256]; int ret= 0; sprintf(query, "SET @slave_uuid= '%s'", server_uuid); if (mysql_real_query(mysql, query, strlen(query)) && !check_io_slave_killed(mi->info_thd, mi, NULL)) goto err;
/** Set user variables after connecting to the master.
@param mysql MYSQL to request uuid from master. @param mi Master_info to set master_uuid
@return 0: Success, 1: Fatal error, 2: Network error. */ int io_thread_init_commands(MYSQL *mysql, Master_info *mi) { char query[256]; int ret= 0;
sprintf(query, "SET @slave_uuid= '%s'", server_uuid); if (mysql_real_query(mysql, query, strlen(query)) && !check_io_slave_killed(mi->info_thd, mi, NULL)) goto err;
fixed issue #284 , add slave_uuid
b2a5f48
看了mysql5.6的源码,它应该是兼容了mysql5.5 client的serverId的dump,如果没有设置slave_uuid默认也会是基于serverId进行判断. 增加slave_uuid之后可以避免对于slaveId不同的强依赖
No branches or pull requests
for MySQL5.6.20 have not compatible with MySQL5.5, so it will no kill zombie thread without the slave uuid
The text was updated successfully, but these errors were encountered: