Bug #72825 | WORKER_ID in replication_execute_status_by_worker is always 1 SQL Not Running | ||
---|---|---|---|
Submitted: | 1 Jun 2014 3:47 | ||
Reporter: | Jesper wisborg Krogh | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Performance Schema | Severity: | S3 (Non-critical) |
Version: | 5.7.4 | OS: | Linux (OL6) |
Assigned to: | Marc ALFF | CPU Architecture: | Any |
[1 Jun 2014 3:47]
Jesper wisborg Krogh
[1 Jun 2014 3:57]
Jesper wisborg Krogh
Sorry - wrong output from replication_execute_status_by_worker. The issue only exists when the SQL threads are not running: slave> SELECT WORKER_ID, THREAD_ID, LEFT(LAST_ERROR_MESSAGE, 20) AS 'Last Error' FROM performance_schema.replication_execute_status_by_worker; +-----------+-----------+----------------------+ | WORKER_ID | THREAD_ID | Last Error | +-----------+-----------+----------------------+ | 1 | NULL | | | 1 | NULL | | | 1 | NULL | | | 1 | NULL | | | 1 | NULL | | | 1 | NULL | | | 1 | NULL | | | 1 | NULL | Worker 7 failed exec | +-----------+-----------+----------------------+ 8 rows in set (0.00 sec) But as this will always be the case when one of the SQL threads encountered an error it makes it more difficult to investigate replication errors.
[1 Jun 2014 4:09]
Jesper wisborg Krogh
One important side effect of this is that the WORKER_ID displayed in the error message in replication_execute_status_by_coordinator is always 1 no matter which worker actually encountered the error.