Bug #91722 | MGR may becomes a one-member-online system but still provide service | ||
---|---|---|---|
Submitted: | 20 Jul 2018 3:08 | Modified: | 14 Aug 2018 9:21 |
Reporter: | Fengchun Hua | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Group Replication | Severity: | S1 (Critical) |
Version: | 5.7.22 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[20 Jul 2018 3:08]
Fengchun Hua
[9 Aug 2018 8:39]
Fengchun Hua
The last comment's suggest is not good enough. I find a better way to solve it. in bool Gcs_xcom_control::xcom_receive_global_view 1.Record last view and current member_ids, this member_ids is different from current_member it will pretend expel members have kicked out for checking view confliction. 2.refresh member_ids when last_view is empty or last view is not equals to current view. 3.pretend expel members is kicked out. erase it from member_ids 4.after pretend kick, check member_ids count 5.drop view that will lead to one member online.
[10 Aug 2018 14:11]
MySQL Verification Team
Hi, I do understand what you did - start 3 nodes - kill network - only master node is alive, other ones are disconnected but I don't understand what you consider a bug here? I understand you might like different behavior but I don't see how behaving as is is a bug. thanks Bogdan
[13 Aug 2018 8:47]
Fengchun Hua
1.By analysis the code, I found that this situation is because MGR apply a expired view msg. 2.And I think only major members can make a decision. The fact is, primary kicks both secondary out. 3.I don't think one-member can provide service, because when two secondary is not reachable, MGR will hang all the transactions. so I consider it as a bug. I just report it, in case of data loose. Our team treat it as a bug, and will fix it.
[13 Aug 2018 15:25]
MySQL Verification Team
Hi, Well I did verify the behavior. I'm not 100% sure if it's a bug or not so I'll leave it to replication team to decide if they want to "fix" it or leave it as is. I will set it to "verified". Thank you for your report! kind regards Bogdan
[14 Aug 2018 9:21]
Fengchun Hua
Thanks!
[1 Nov 2018 8:40]
Gosin Gu
This violates the terms of mencius, This bug also affected me.