[MDEV-8476] Race condition in slave SQL thread shutdown Created: 2015-07-16 Updated: 2015-11-12 Resolved: 2015-11-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.0.23, 10.1.8 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Sergey Vojtovich | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
During server shutdown slave SQL thread broadcasts "stopped" too early:
This causes enormous number of sporadic replication test failures with crashes, hangs and warnings like "Plugin '...' has ref_count=1 after shutdown". To reproduce this failure reliably, just add sleep(1) immediately after condition is signaled and run tests as usual:
This seem to be appeared after:
|
| Comments |
| Comment by Elena Stepanova [ 2015-09-25 ] | |||||||||||||
|
svoj, Is it a 10.x-specific problem, as specified in Affected versions, or 5.5 can be affected as well?
Which in fact looks like this in the slave's error log:
So, obviously the slave had hung on shutdown. | |||||||||||||
| Comment by Sergey Vojtovich [ 2015-09-28 ] | |||||||||||||
|
elenst, this should be different bug. I see no way for this | |||||||||||||
| Comment by Michael Widenius [ 2015-11-12 ] | |||||||||||||
|
Fixed some time ago in 10.1 by adding a variable to detect if all slaves threads has properly ended |