Bug #113410 hang creating InnoDB Cluster
Submitted: 13 Dec 2023 18:56 Modified: 25 Jan 2024 14:55
Reporter: Mikhail Izioumtchenko Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Group Replication Severity:S3 (Non-critical)
Version:8.0.34 OS:Oracle Linux (v9)
Assigned to: MySQL Verification Team CPU Architecture:Any

[13 Dec 2023 18:56] Mikhail Izioumtchenko
Description:
while creating a 4 node InnoDB cluster from scratch,
3 node cluster is created fine but mysqlsh hangs while attempting to add node 4.
Attaching a few logs for your convenience.

Workaround 1: interrupt spinning mysqlsh, shutdown instance 4, restart it, reattempt adding it to cluster. Worked for me

Workaround 2: instead of sequence in 4.sh, start and add instances one by one,
shutting down each instance after adding it.

How to repeat:
execute attached script 4.sh
[13 Dec 2023 18:57] Mikhail Izioumtchenko
testcase

Attachment: 4.sh (text/x-sh), 1.54 KiB.

[18 Dec 2023 18:05] MySQL Verification Team
Hi,

I'm having issues reproducing this with "normal" 4 linux servers.
Did you only managed to reproduce this with "linux inside windows" ?

Btw, you are aware that you should always have odd number of servers in innodb cluster?
[18 Dec 2023 18:58] Mikhail Izioumtchenko
atm I'm just testing it so I'm using Linux Windows sandboxes on a single laptop.
I'm aware that odd number is better though I can't say I'm sure why.
I hit the spin every now and then like when I was creating a cluster set.
It's a slightly annoying feature in that I have to remember to use shorter mysqlsh scripts when adding sandboxes to whichever, essentially add each sandbox using a separate invocation of mysqlsh.
I wonder what would happen if you try to use real Linux, not under Windows, but still sandboxes, that is, on a single Linux server.
[19 Dec 2023 10:07] MySQL Verification Team
Hi,

>  can't say I'm sure why.

split brain detection works much better with odd number of servers

>  wonder what would happen if you try to use real Linux, not under Windows, but still sandboxes, that is, on a single Linux server.

I did test on single Linux server, no issues. 

all best
[24 Dec 2023 19:30] Mikhail Izioumtchenko
I'll try to find time to trace mysqlsh so let's keep the bug in needs feedback.
It may be something around Windows, WSL and Linux interaction. 
Looks like mysqlsh sends something to mysqld but the latter never receives.
So mysqlsh waits for response that never arrives.
Strange mysqlsh is in a spin whereas I'd expect it to be in some form of polling.
[25 Dec 2023 14:55] MySQL Verification Team
Ok, thanks for checking. It looks like WSL issue from what I can see as with regular Linux setup it works as expected and is pretty well tested.
[26 Jan 2024 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".