-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Replication
-
Fully Compatible
-
ALL
-
v8.0
-
Repl 2024-08-05, Repl 2024-08-19
-
0
SERVER-87285 introduced fuzzing of internalQueryFindCommandBatchSize which determines "The batch size used for find commands as a default if none is specified."
This causes failures in multi_statement_transaction_abort.js when the batchSize is set to a value <= 3 as the collection contains 3 documents and the test asserts that the find returns a cursor ID of 0. With batchSize 1 or 2, we don't get all the docs back and so get a non-zero ID, with batchSize of 3, as SERVER-57067 describes, we also don't.
Using an explicit batch size of 4 for this find should ensure the server always exhausts all the results and returns cursor ID 0.