[MDEV-24471] Connection aborts is happening in MariaDB 10.2 but not in 10.1 even with log_warnings level set to 2 Created: 2020-12-22 Updated: 2021-04-25 Resolved: 2021-04-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.2.29 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Ragul | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Description |
|
I am noticing different behavior in mariadb 10.1 & 10.2 reg.connection aborts. I noticed connection getting aborted after 7 minutes(wait_timeout) of any query execution. There are few random connection aborts happening in my application too. But I don't see this behavior(connection abort logs) happening in mariadb 10.1. I am aware that the default value for variable "log_warnings" has been changed from 1 to 2 in MariaDB 10.2. But even with log_warnings value as 2 in MariaDB 10.1, I don't see connection aborts happening. For eg. In below query connection Id : 2218 is created
From general query logs, the query executed time is 11:53:15
From Error logs, the connection closed at 12:00:16
wait_timeout is set to 7mins(420s)
I could see the same behavior happening for any query execution (Connection aborting after 7mins) in MariaDB 10.2 but it is not happening in 10.1 even when the log_warnings level set to 2 |
| Comments |
| Comment by Alice Sherepa [ 2020-12-22 ] | ||||
|
Maybe you need to change max_allowed_packet/max_connections/thread_cache_size/interactive_timeout. | ||||
| Comment by Ragul [ 2020-12-22 ] | ||||
|
I have configured the same values for the mentioned variables in both versions.
Also, all the connection aborts are happening with respect to one reason only Got timeout reading communication packets. This is the case for all the connection aborts. This matches with our wait_timeout value 420s. | ||||
| Comment by Ragul [ 2021-02-08 ] | ||||
|
Any hints to find why the above logs are occurring? | ||||
| Comment by Elena Stepanova [ 2021-03-28 ] | ||||
|
Could you please clarify, what is not happening on 10.1 – the connection abort after wait_timeout period, or the logging warning upon abort? The warning indicates that the configured timeout has been invoked, and from what you have pasted, 10.2 behaves as expected. You configure the interactive timeout to be 7 minutes, your connection disconnects after 7 minutes. In fact, you don't even need to run any query for it, just watch the error log – it will write the warning when the timeout occurs. The error on the next query is just an aftermath of the previous connection closing. I am getting the same on 10.1.48 as well. |