[MDEV-15609] engines/funcs.crash_manytables_number crashes with error 24 (too many open files) Created: 2018-03-20 Updated: 2018-03-26 Resolved: 2018-03-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.1.32 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Widenius | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
mtr engines/funcs.crash_manytables_number
This happens because we don't adjust the size of open table cache based on the number of files we can open. The current code adjust tc_size only if the following is true:
The code should be adjusted so that we always adjust tc_size if it's bigger than
(I think that 10 is probably too low, we may need more file descriptors for temporary files etc). Currently the tc_size has a lower value of TABLE_OPEN_CACHE_MIN, which is 400. Suggested fix:
When mysqld is started with systemd, the number of files that can be |
| Comments |
| Comment by Michael Widenius [ 2018-03-26 ] |
|
Fixed by adjusting tc_size downwards if there is not enough file descriptors to use. |