-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Test Coverage
-
None
With the switch to the slot-based execution engine (SBE) in the server cursor behaviour changed where a cursor is not closed automatically on the server side if the end of a batch returned in getMore lines up with a previously established limit on the cursor. The command monitoring tests (and subsequently the POC test that was converted as part of the unified test format project) test for this behaviour, with those tests failing on 5.0.
Note that this command monitoring test is the only test that checks the behaviour defined in the "Find, getMore, and killCursors commands" specification, which requires drivers to make the last getMore batch size line up with limit, replicating the behaviour used for OP_GET_MORE. For that reason, I've duplicated the test and changed it for 5.0, and skipping the old test on 5.0 and newer. I'll create a separate drivers ticket to move the tests to the more appropriate location.