[MDEV-22081] mariabackup crashes on exceeding open_files_limit Created: 2020-03-30 Updated: 2023-10-18 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Backup |
| Affects Version/s: | 10.3.21, 10.6.14 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Andreas Schnederle-Wagner | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Centos 7 |
||
| Issue Links: |
|
||||||||||||
| Description |
|
Hey there,
Max. Open Files should not be the Source I guess as it's raised to the limit already:
Hope someone here can give me a helping hand on this! thx, bye from Austria |
| Comments |
| Comment by Alice Sherepa [ 2020-03-30 ] |
|
The error message says it's 'Too many open files', could you please try one of suggested here solutions https://mariadb.com/kb/en/mariabackup-overview/#too-many-open-files |
| Comment by Andreas Schnederle-Wagner [ 2020-03-30 ] |
|
I'm a bit puzzled by this as "Max Open Files" is set to 1048576 on this Server - so should be more than high enough?! But you are right - setting [mariabackup] open_files_limit=65535 did solve the Problem! Thank you! |
| Comment by Elena Stepanova [ 2020-04-05 ] |
|
As marko pointed out many times, InnoDB is overly eager to abort on system errors. Ideally, InnoDB shouldn't crash on this. If it really has to abort, it would be better to go down in a more graceful fashion. |
| Comment by Marko Mäkelä [ 2021-04-26 ] |
|
Futureweb, could you try to diagnose this with strace? Or construct a repeatable test case? |
| Comment by Andreas Schnederle-Wagner [ 2021-04-27 ] |
|
@Marko - problem was solved setting [mariabackup] open_files_limit=65535 |
| Comment by Marko Mäkelä [ 2021-07-23 ] |
|
This is conceptually similar to In fact, there is no reason why mariabackup --backup is using the InnoDB file handling wrapper functions. It could use the mysys functions. |
| Comment by Marko Mäkelä [ 2021-09-17 ] |
|
I do not think that fixing this (removing the use of InnoDB file API wrappers in mariabackup --backup) requires any deep InnoDB knowledge. |