On server shutdown threadpool is crashing in debug mode due to race condition

Description

There is a race condition that causes debug server to crash. The race is between main server thread and main worker thread. The stack-trace:

Environment

None

Smart Checklist

Activity

Show:

George Lorch March 9, 2018 at 2:43 PM

and I am not sure this is fixed. I have a recent 5.7 jenkins job (https://jenkins.percona.com/view/5.7/job/mysql-5.7-param/1699/#showFailuresLink) that has several of these failures in it. My branch does have this fix in its history :

Here is one of the failures with a missing back trace:

Robert Golebiowski February 22, 2018 at 3:58 PM

ported the fix. Only second part of this fix is valid for 8.0.4. Please see the commit message. PR => https://github.com/laurynas-biveinis/percona-server/pull/18

Laurynas Biveinis February 12, 2018 at 3:16 AM

Robert Golebiowski February 9, 2018 at 2:09 PM

Robert Golebiowski February 9, 2018 at 2:04 PM

Added upstream bug with patch: https://bugs.mysql.com/bug.php?id=89607

Done

Details

Assignee

Reporter

Time tracking

1h 21m logged

Affects versions

Priority

Smart Checklist

Created January 17, 2018 at 7:42 AM
Updated March 9, 2018 at 2:43 PM
Resolved February 9, 2018 at 2:09 PM