Bug #97560 | idle & caught up slave has old query shown in "Info" section of processlist... | ||
---|---|---|---|
Submitted: | 8 Nov 2019 12:32 | Modified: | 4 Feb 2021 15:44 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.7.29 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[8 Nov 2019 12:32]
Shane Bester
[13 Nov 2020 2:02]
Ye Jinrong
I meet this bug too, but at 8.0.22 version. There are 4 nodes in MGR. mysql> select * from performance_schema.replication_group_members; +---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+ | CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION | +---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+ | group_replication_applier | 2d9a8e67-2004-11eb-a38c-e4434ba52b50 | ndb1 | 3390 | ONLINE | SECONDARY | 8.0.22 | | group_replication_applier | 72fd3fd5-1ffd-11eb-a584-e4434ba52b50 | ndb1 | 3380 | ONLINE | PRIMARY | 8.0.22 | | group_replication_applier | 91f738e8-2000-11eb-a043-e4434ba522fc | ndb2 | 3380 | ONLINE | SECONDARY | 8.0.22 | | group_replication_applier | dd850604-2002-11eb-9b4c-e4434ba522fc | ndb2 | 3390 | ONLINE | SECONDARY | 8.0.22 | +---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+ execute alter user command in primary node mysql> alter user identified by 'yejr'; then in one Secondary node mysql>select @@server_uuid; +--------------------------------------+ | @@server_uuid | +--------------------------------------+ | 91f738e8-2000-11eb-a043-e4434ba522fc | +--------------------------------------+ mysql> pager cat - | grep ALTER mysql> show processlist; | 12 | system user | | NULL | Query | 30 | Slave has read all relay log; waiting for more updates | ALTER USER 'yejr'@'%' IDENTIFIED WITH 'mysql_native_password' AS '*9DB91006131E32B22135599033C6A9C19 | the state will not change until i execute some other command in Primary node.
[4 Feb 2021 15:44]
Margaret Fisher
Posted by developer: Changelog entry added for MySQL 8.0.24: The output of a SHOW PROCESSLIST statement for a replica’s SQL thread sometimes showed the last query as currently being applied when the replica was actually caught up.