[MDEV-7862] server freeze for a moment when inserting Created: 2015-03-28 Updated: 2021-02-15 Resolved: 2021-02-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.0.17 |
| Fix Version/s: | 10.0.25, 10.1.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Pavel Dvorak | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
debian 7.8 x64 |
||
| Attachments: |
|
| Description |
|
i have a script that insert about 200 records/s to a table the table:
|
| Comments |
| Comment by Elena Stepanova [ 2015-03-30 ] | |||||
How big is it normally? Please provide output of SHOW PROCESSLIST executed by root at the time when the freeze is happening. | |||||
| Comment by Pavel Dvorak [ 2015-03-30 ] | |||||
|
about 300% in top i can try but's the server is frozen so it will do nothing probably | |||||
| Comment by Elena Stepanova [ 2015-03-30 ] | |||||
|
The fact that you can not do it is also interesting to know, but it should be verified. | |||||
| Comment by Pavel Dvorak [ 2015-03-30 ] | |||||
|
i thinks it's that INSERT INTO `firm`.`firm_db` SET | |||||
| Comment by Pavel Dvorak [ 2015-03-30 ] | |||||
|
later in the log, the insert takes a long time | |||||
| Comment by Pavel Dvorak [ 2015-04-08 ] | |||||
|
works fine after removing the index | |||||
| Comment by Elena Stepanova [ 2015-04-15 ] | |||||
|
Hi, So, according to the process list, all queries freeze in 'query end' state. Please check/monitor the disk to see if there is some unusual activity or problem correlated in time with the delays you observe. Here is one of probably numerous discussions on the subject: http://stackoverflow.com/questions/13234290/lots-of-query-end-states-in-mysql-all-connections-used-in-a-matter-of-minutes Somebody says there that they resolved the problem by unsetting sync_binlog. You can also experiment with innodb_flush_log_at_trx_commit. | |||||
| Comment by Pavel Dvorak [ 2015-04-15 ] | |||||
|
yes, sync is on | |||||
| Comment by Elena Stepanova [ 2015-05-18 ] | |||||
|
Please comment to re-open if you have more information confirming it's a MariaDB server bug. | |||||
| Comment by David Schnall [ 2016-02-28 ] | |||||
|
Might be linked to this mysql bug: http://bugs.mysql.com/bug.php?id=73816 Currently in mariadb the only workaround I found was to disable binary logging | |||||
| Comment by Marko Mäkelä [ 2020-10-19 ] | |||||
|
thiru, please check this. I think that if the MySQL fix was merged, it should have been in the following merge to 10.0 and merge to 10.2. Please also note that there were 2 huge commits to 10.2 to apply InnoDB changes from MySQL 5.7.9 and MySQL 5.7.14. You should also check that these commits did not discard any part of the fix. It could be a good idea to compare the InnoDB code as of those commits to the MySQL 5.7.9 and 5.7.14 releases. | |||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-10-19 ] | |||||
|
It is already merged to 10.1 already.
| |||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-10-19 ] | |||||
|
I compared the patch manually. It exists in 10.1, 10.2 as well |