[MDEV-13472] rpl.rpl_semi_sync_wait_point crashes because of thd_destructor_proxy Created: 2017-08-08 Updated: 2017-11-30 Resolved: 2017-08-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.2.8 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Michael Widenius | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
bb-10.3-monty |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
rpl.rpl_semi_sync_wait_point crashes because of thd_destructor_proxy kills innodb What happens is that proxy detects that no transactions are active and starts Suggestion is to mark innodb server threads and in close_connection first shutdown all other threads, including events, and then last inform destructor proxy and other innodb threads that they can now safely be shut down. |
| Comments |
| Comment by Marko Mäkelä [ 2017-08-08 ] | |||||||||||||||||||||||
|
There is a much simpler solution: relax the failing InnoDB debug assertion that I made too strict.
I am sorry that this did not occur to me until now. It takes time to ‘populate the cache’ of my brain after a long vacation. | |||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2017-08-08 ] | |||||||||||||||||||||||
|
As serg pointed out and I noted in my tentative fix, the above assertion relaxation may be insufficient: for innodb_fast_shutdown=0 we may need the solution that monty proposed. I would strongly advise against making innodb_fast_shutdown=2 any slower. | |||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2017-08-11 ] | |||||||||||||||||||||||
|
The thd_destructor_proxy() was introduced for |