Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
2.14.0
-
None
Description
The following code:
collection.aggregate(pipeline, AggregationOptions.builder()
|
.batchSize(1) |
.build())
|
will send nToReturn of -1 to OP_GET_MORE when fetching the second batch of documents.
On server 3.4, this results in a uassert:
AssertionException handling request, closing client connection: 34419 Invalid ntoreturn for OP_GET_MORE: -1
|
The driver should be fixed so that it sends nToReturn of 1 instead.
Attachments
Issue Links
- related to
-
DOCS-8125 Wire protocol documentation should note that OP_GET_MORE's numberToReturn must be non-negative
-
- Closed
-
-
SERVER-20808 Server should reject negative ntoreturn received with OP_GET_MORE message
-
- Closed
-