Bug #70423 | performance_schema.replication_execute_status_by_worker wrong thread ID | ||
---|---|---|---|
Submitted: | 25 Sep 2013 20:38 | Modified: | 24 Oct 2013 13:01 |
Reporter: | Marcelo Altmann | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.7.2 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[25 Sep 2013 20:38]
Marcelo Altmann
[27 Sep 2013 8:33]
MySQL Verification Team
Hello Marcelo, Thank you for the bug report. Verified as described. Thanks, Umesh
[27 Sep 2013 20:49]
Shivji Jha
What this bug report states is not a bug in the multi-source replication labs release but a bug in MySQL 5.7.2 itself. Note that what Multi source replication labs release now shows is the intended behaviour. Some background: =============== information_schema.Id is the *connection* identifier. performance_schema's thread_id is a unique thread identifier (including *both background and foreground threads*), see http://dev.mysql.com/doc/refman/5.7/en/threads-table.html Both I_S and P_S maintain their own counters which they increment with every new thread/connection and hence the two may differ for say, IO/SQL/worker threads. About the bug: ============= In 5.7.2 the replication P_S tables show in thread_id column what I_S.processlist shows in the Id field. This is identified as a bug and we have corrected it in Multi source replication labs release, but not in 5.7 yet. After this bug fix, we will have the following situation: 1) Thread_id column in replication P_S tables show what other P_S tables do. 2) Thread_id column in replication P_S tables may NOT match I_S.processlist.Id 3) The mapping between I_S.processlist.Id and P_S.thread_id can be seen in the table P_S.threads
[24 Oct 2013 13:01]
Jon Stephens
Fixed in 5.7, documented as follows in the 5.7.3 changelog: The THREAD_ID column values shown in the PERFORMANCE_SCHEMA.REPLICATION_EXECUTE_STATUS_BY_WORKER table used the same thread IDs shown in the output from SHOW PROCESSLIST, rather than those used by other PERFORMANCE_SCHEMA tables. Closed.