-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Test Coverage
-
None
Updated Description
The server does not support setting maxTimeMS on getMore unless the cursor is tailable. This is exposed via the maxAwaitTime option for aggregate helper.
Update the test for this to ensure that the aggregate pipeline creates a tailable cursor by adding a $changeStream stage.
Original Description
Latest MongoD's reporting errors and failing in Evergreen.
Query failed with error code 2 and error message 'cannot set maxTimeMS on getMore command for a non-awaitData cursor'
Commands sent to server:
{ "aggregate" : "JAVA2827", "pipeline" : [], "cursor" : { "batchSize" : 2 }, "$db" : "test", "$readPreference" : { "mode" : "primaryPreferred" } } { "getMore" : 9162929968295230509, "collection" : "JAVA2827", "batchSize" : 2, "maxTimeMS" : 5000, "$db" : "test", "$readPreference" : { "mode" : "primaryPreferred" } }
- links to