[MDEV-28368] Writer node is 'stuck' and is not accepting any DDL queries until we kill -9 pid Created: 2022-04-20 Updated: 2022-07-03 Resolved: 2022-07-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera |
| Affects Version/s: | 10.5.15, 10.6.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Piotr Wa | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
We detected a galera entire galera cluster blocked no DDL operations could be run until we kill -9 writer node behaviour was on 10.6 and 10.5 series Root Cause the problem was the query was being run as follows: changing it to the following resolves the issue: Connection.Execute(sql, new { betId, guaranteedPrice, offeredTime } ); Given enought time with Connection.Query (30 minutes give or take it will hang entire cluster) |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2022-04-21 ] |
|
Pietia10 Can you provide full error logs (if this is repeatable use wsrep-debug=1), show processlist output, show engine innodb output and node configuration. Please specify server and Galera library versions used. |
| Comment by Piotr Wa [ 2022-04-21 ] |
|
Hi @Jan |
| Comment by Piotr Wa [ 2022-04-21 ] |
|
Hi @Jan |
| Comment by Jan Lindström (Inactive) [ 2022-06-03 ] |
|
Pietia10 Can you reproduce this issue? Can I have show create table bets_cashout_offers and if your server hangs kill it and use debug package and open core file in debugger and provide ouput from thread apply all bt. Please use plain text format. |
| Comment by Piotr Wa [ 2022-06-03 ] |
|
Hi @Jan, I'm afraid we can't reproduce anymore as we changed the code from Connection.Query to Connection.Execute which effectively fixed problem with hang. CREATE TABLE `bets_cashout_offers` ( |