shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

scaling incrementalSyncTask is stuck

Open malaxiaolongxia opened this issue 6 years ago • 9 comments

Scaling incrementalSyncTask job is stucked inMySQLClient.registerSlave()and not work when i update source table

malaxiaolongxia avatar May 07 '20 11:05 malaxiaolongxia

Pls provide steps to reproduce the behavior.

avalon5666 avatar May 08 '20 01:05 avalon5666

Here is my test code,when i run it , it never print ok and always wait expected response MySQLOKPacket

    public static void main(String[] args) {
        MySQLClient mySQLClient = new MySQLClient(2103316, "xxxx", 3306, "mall_test_m_rw", "mall_test_m_rw");
        mySQLClient.connect();
        mySQLClient.subscribe("mariadb-bin.000617", 790748916);
        System.out.println("ok");
    }
}
`show variables like '%server_id%';` then value is 2103316
`show master status;` then value is mariadb-bin.000617   790748916``

malaxiaolongxia avatar May 08 '20 03:05 malaxiaolongxia

It seem you are using mariadb, scaling only test by mysql.

avalon5666 avatar May 10 '20 13:05 avalon5666

Theoretically, the protocol between mysql and mariadb should be the same. The reason why it cannot be connected may be the error caused by the difference in the configuration of abilities. Need to be checked in detail.

KomachiSion avatar May 11 '20 00:05 KomachiSion

Can you provide TCP packet for further information?

ssxlulu avatar May 11 '20 02:05 ssxlulu

Today I installed mysql in my test environment and the test code worked,It's a little different than before

  • I use mysql instead of mariadb
  • The data is less than before ,mysql has one database and one record while mariadb has about 100 database and 5E records. Hope to help you resolve the issue

malaxiaolongxia avatar May 11 '20 07:05 malaxiaolongxia

It can work normally in mariadb 10.1. Pls provide tcp dump or mariadb version.

avalon5666 avatar May 12 '20 13:05 avalon5666

@malaxiaolongxia Maybe you can try any other server_id to new MySQLClient. show variables like '%server_id%'; is select master server_id, MySQLClient is a slave, we don't have to use the same id.

By the way, I tried the same server_id as my master, it still work. So I'm not sure my answer is correct, maybe it also effected by db version.

Just try.

Lucas-307 avatar May 19 '20 06:05 Lucas-307

Closed because of no response anymore

terrymanu avatar Jun 17 '20 05:06 terrymanu