Bug #93365 | Query on performance_schema.data_locks causes replication issues | ||
---|---|---|---|
Submitted: | 27 Nov 2018 14:39 | Modified: | 6 Jan 2023 7:01 |
Reporter: | Daniël van Eeden (OCA) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Performance Schema | Severity: | S2 (Serious) |
Version: | 8.0.12 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | replication |
[27 Nov 2018 14:39]
Daniël van Eeden
[3 Dec 2018 14:21]
MySQL Verification Team
Hi, Thank you for your bug report. Yes, it is true that querying P_S on data_locks will set locks that will prevent many operations, including the ones that you have mentioned. Hence, this is a designed behaviour. However, if you wish, I can promote this bug report into the feature request that will split some of those locks into few more with more limited range of queries that would be affected. What is your opinion on this proposition ??? Many thanks in advance.
[3 Dec 2018 18:58]
Daniël van Eeden
Splitting this might help a bit. However I think the InnoDB specific tables this replaces didn't have this behaviour. Maybe the InnoDB specific tables should be brought back? I think documentation should be updated with a clear warning about the implications of querying this table.
[6 Dec 2018 13:45]
MySQL Verification Team
Hi Daniel, I am in full agreement with you and I am verifying this as a code bug. After a code bug is resolved, documentation has to be updated as well. Thank you for your contribution.
[14 Jan 2019 20:52]
Sveta Smirnova
Sinisa, Performance Schema is always advertised as a schema with fewer locks than Information Schema, not as one having more locks. Monitoring query which causes stalls of the useful job makes no sense.
[15 Jan 2019 12:53]
MySQL Verification Team
I agree that this change in behaviour goes against proclaimed objectives, so I am raising the Severity.
[7 May 2019 9:07]
Erlend Dahl
Despite our best efforts, we are unable to reproduce this problem.
[5 Jan 2023 6:15]
MySQL Verification Team
Maybe this is related: https://bugs.mysql.com/bug.php?id=109539 (Performance of scanning data_lock_waits worse than expected with read-only trx)
[5 Jan 2023 12:59]
MySQL Verification Team
Hi, Your report is not a duplicate of the following verified bug report: https://bugs.mysql.com/bug.php?id=109539
[6 Jan 2023 7:01]
Daniël van Eeden
> Your report is not a duplicate of the following verified bug report: > > https://bugs.mysql.com/bug.php?id=109539 This doesn't match with the status change: -Status: Can't repeat +Status: Duplicate Could you clarify if you consider this bug to be a duplicate of Bug #109539 or maybe a duplicate of another bug?
[9 Jan 2023 12:36]
MySQL Verification Team
Hi Mr. Eeden, Sorry for the typo. It is a duplicate of the above mentioned original bug ......