-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation
-
None
Note: This is affecting the BI Connector so the fix will need to be backported.
Included are my go and python programs that illustrate the difference in behavior.
I have created a collection in test named tenkdocs. Just make sure it contains 10k docs (really, more than 100 is fine, since that is where both the python and go driver stop).
Start mongod with the following parameters:
`--setParameter internalDocumentSourceCursorBatchSizeBytes=1 --setParameter cursorTimeoutMillis=2000 --setParameter clientCursorMonitorFrequencySecs=1 --setParameter enableTimeoutOfInactiveSessionCursors=true`
As the title hints, the python program raises a CursorNotFoundError, while the go program reports no error, resulting in users thinking there are fewer results than there are.