[MDEV-29482] Node crashes with Error: Attempt to match against an empty key Created: 2022-09-07 Updated: 2022-09-19 Resolved: 2022-09-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Platform FreeBSD |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Heiko Dunse | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | crash, galera | ||
| Environment: |
OS Version: FreeBSD 13.0 |
||
| Issue Links: |
|
||||||||
| Description |
|
I'm using 2 Loadbalancers and 3 MariaDB Nodes as a Galera Cluster. Only my 3rd Node makes backups every night and a few hours (or rarely direct) after the backup is finished, the Node crached with the following message in the error.log: 2022-09-07 1:18:36 154740 [ERROR] WSREP: Certification exception: Attempt to match against an empty key (0,1): 22 (Invalid argument) joined { ) I use mysqldump for the backup script and to make it consistent The certificate and key files should be okay. After I started the MySQL-Server everything is fine. The node is synced from the others. I'm not sure if it really has anything to do with the backup. |
| Comments |
| Comment by Daniel Black [ 2022-09-12 ] |
|
Duplicate per linked issue. Thanks for the bug report, it provided extra information which is useful. |
| Comment by Daniel Black [ 2022-09-13 ] |
|
As this is reproducible are you able to provide a obtain a core dump and backtrace?. Its bt all on lldb if you have that installed (can't find "frame-arguments all" equivalent but it would be useful). The backtrace won't be enough. What would be deal is printing the contents of the galera writeset information in the backtrace. This can be displayed with p variable where variable looks something like a writeset. frame can navigate to the right location. I realize this is probably outside your comfort zone but the more information the quicker this can be resolved. If you find any table information, a structure of that table show create table and generally how its updated might be of assistance. |
| Comment by Heiko Dunse [ 2022-09-14 ] |
|
Thanks for your answer. Do you still need a tracing or something, because in MDEV-29444 a core dump was already posted. |
| Comment by Daniel Black [ 2022-09-19 ] |
|
Yes please.The MDEV-29444 trace wasn't particularly useful. truss will be a bit noisy. Configuring core settings to support a core dump, and a limit for the coredumpsize to be unlimited (or size of memory that freebsd normally uses(). Try to check the running mariadbd process has these limits raised. Then when the assert happens, after getting your system operational again, attempt a backtrace using the generated core file. |