Server hangs or assertion `!thd->wait_for_commit_ptr' fails on MASTER_POS_WAIT with slave-parallel-threads > 0

Description

The following test case, if it's run with slave-parallel-threads=1 or greater, either hangs on SELECT MASTER_POS_WAIT, or causes an assertion failure (sometimes it passes, then it might crash with MDEV-5195, so try it several times).

Assertion failure:

Environment

None

Assignee

Kristian Nielsen

Reporter

Elena Stepanova

Labels

None

Fix versions

Priority

Major
Configure