Bug #118852 | Replicas with the same uuid may be connected to the same master database | ||
---|---|---|---|
Submitted: | 19 Aug 8:53 | Modified: | 20 Aug 11:28 |
Reporter: | karry zhang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[19 Aug 8:53]
karry zhang
[19 Aug 9:04]
MySQL Verification Team
Hello, > In some cases two replicas with the same uuid may be connected to the same source. A UUID (Universally Unique Identifier) is a 128-bit value used to uniquely identify information in computer systems. UNIQUELY being a keyword here?! The case where two replicas have same uuid is invalid case. Can you give me a relevant reason why would that case be valid?
[19 Aug 11:34]
karry zhang
Hello, MySQL Verification Team. The MySQL server generates a true UUID in addition to the default or user-supplied server ID set in the server_id system variable. This is available as the global, read-only variable server_uuid. The server_uuid is saved in auto.cnf. In some backup scenarios, the auto.cnf file will also be backed up, resulting in two servers having the same uuid. In some backup scenarios, this auto.cnf file is also backed up, resulting in two servers having the same UUID. I admit this isn't a typical scenario, so the bug title isn't quite right. I believe the key impact of this bug is that if the same replica frequently connects, it can lead to a large number of connections to the source. I believe this is the purpose of the zombie kill operation.
[20 Aug 6:11]
MySQL Verification Team
Hello, There is no way I can accept this is a bug. I would argue that whatever that backup policy is - it is a problem / buggy, not the MySQL for assuming UUID is unique. I will convert this to Feature Request and verify it as such. I doubt dev team will decide to approve it but it is the best I can do.
[20 Aug 11:28]
karry zhang
Hello, As I mentioned, the title of this bug is not well chosen. In fact, the key to this bug is that there may be multiple connections from the same replica at the same time. If MySQL allows this behavior, then why is there a kill zombie operation? If this behavior is not allowed, then it is a bug.