[MDEV-25965] mariadb crashes and cannot resync - [ERROR] mysqld got signal 11 ; Created: 2021-06-18 Updated: 2021-08-04 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.5.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Alain Bourgeois | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | crash, galera | ||
| Environment: |
debian linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux |
||
| Attachments: |
|
| Description |
|
Once every ~20 days, an active node in a galera cluster crashes, always at ~ the same time (0:06) although no cron job run at that time. Server has 32Gg RAM and has enough resources. Log shows: To report this bug, see https://mariadb.com/kb/en/reporting-bugs We will try our best to scrape up some info that will hopefully help Server version: 10.5.10-MariaDB-1:10.5.10+maria~buster-log Thread pointer: 0x7f10b42c31d8 then all transactions fall in timeout until To report this bug, see https://mariadb.com/kb/en/reporting-bugs We will try our best to scrape up some info that will hopefully help Server version: 10.5.10-MariaDB-1:10.5.10+maria~buster-log Thread pointer: 0x7f23c4000c18 => the only solution found till now is to scratch data folder and make a full sst from another running node. |
| Comments |
| Comment by jules potvin [ 2021-08-03 ] |
|
I had this issue running Ubuntu 20.04.2.0 LTS. I tuned the sysctl.conf and rebooted. Haven't had the issue since. I suspect an increase to file max resolved it : fs.file-max = 2097152 |
| Comment by Alain Bourgeois [ 2021-08-03 ] |
|
in my case it is something else: |
| Comment by jules potvin [ 2021-08-03 ] |
|
The file-max kernel parameter refers to open file descriptors, and file-nr gives us the current number of open file descriptors. You sure have a lot of digets to fill up fs.file-max ! I would start by tuning down your fs.file-max since you would not have the resources to reach this value (not to mention it's larger than the largest unsigned INT variable; some apps will not be able to check it or make calculations off this value 9223372036854775807 ). Might want to validate that every setting in your sysctl.conf is realistic and resonable for your setup. |
| Comment by Alain Bourgeois [ 2021-08-03 ] |
|
this setting is there for years (mariadb 10.1), are you sure it is now that it would cause a crash? |
| Comment by jules potvin [ 2021-08-03 ] |
|
I have been developing a beta app (mwlists.com) and had no issues on 10.5.2. I updated to 10.5.10 and this error started every 1-2 days at exactly 4am, but only on 2 of my 3 nodes. I was running a large job at 4am, so this made sense. I tuned one node's sysctl.conf file, but not the two that were crashing. Once I fixed up sysctl.conf, the other nodes haven't crashed. I'm at 10 days no crash which is the longest time I've run. At this point you have nothing to lose since your fs.file-max makes no sense whatsoever. I picked 2097152, because that's what many write intensive web apps were using when I googled it. That said maybe it is a bug and I'll be back here in 20 days with logs. |
| Comment by Alain Bourgeois [ 2021-08-04 ] |
|
Another option isthat it is fixed in 10.5.11. Since this upgrade , no crash yet. |