SERVER-62147 tracks a bug in the OP_QUERY exhaust cursor implementation. This bug is scheduled to be fixed in the 5.0, 4.4, and 4.2 branches along with accompanying regression tests.
The bug does not affect versions 5.1 or greater, since OP_QUERY support was removed in 5.1. However, it would still be valuable to have the additional test coverage for exhaust cursors present in the master branch, to ensure that the master branch's OP_MSG-based exhaust implementation is functioning correctly. The work for this ticket is to apply to the tests added in
SERVER-62147 to the master branch.