[MDEV-22400] SHUTDOWN on slave may failed in some case Created: 2020-04-28 Updated: 2020-05-12 Resolved: 2020-05-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.4.9, 10.4.11 |
| Fix Version/s: | 10.4.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | VAROQUI Stephane | Assignee: | Andrei Elkin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
OSX siera 10.12.6 |
||
| Attachments: |
|
| Description |
|
Playing with replication manager we have 2 modes of shutdown when orchetrator="local" 1 - send kill process id When 1-2 is working all the time on master mysqld process is not stop but stay for ever in stoping without being able to connect when 2 but with stop slave before it succeed Note that more experiment on debian with 10.5 last github code without semi-sync on do not experiment similar issue , i will report more testing with osx to refined the issue |
| Comments |
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Semi sync as nothing to so with that can reproduce with regular replication | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
dtruss of process that does not stop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ps: 42048 is the salve afater shutdown lrwxr-xr-x 1 apple staff 61 28 avr 14:55 var@ -> /var/lib/replication-manager/backup1/127.0.0.1_3331/init/data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Can reproduce with mariadb db client shutdown mysql -h 127.0.0.1 -P3332 -pmariadb -uroot Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> shutdown MariaDB [(none)]> exit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
can reproduce without repman apple 73057 0,0 3,4 3415720 574628 s000 S+ 11:06 0:01.11 /usr/local/bin/mysqld --defaults-file=/var/lib/replication-manager/backup1/127.0.0.1_3332/init/etc/mysql/my.cnf --port=3332 --server-id=3332 --datadir=/var/lib/replication-manager/backup1/127.0.0.1_3332/var --socket=/var/lib/replication-manager/backup1/127.0.0.1_3332/db9955699208988733892.sock --user=apple --bind-address=0.0.0.0 --pid_file=/var/lib/replication-manager/backup1/127.0.0.1_3332/var/db9955699208988733892.pid macbook-pro-de-apple-2:mysql apple$ mysql -h 127.0.0.1 -P3332 -pmariadb -uroot Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> shutdown; MariaDB [(none)]> exit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Nota ; replication is GTID conservative not a single write have been done on the cluster | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Nota , can reproduce with a write on the master before shutdown | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Can reproduce with no gtid
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2020-05-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2020-05-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks all getting such fast process |