Hi,
Tailable cursors are renewed automatically when maxDoc is reached (if maxDocs >= 0),
cf: https://github.com/ReactiveMongo/ReactiveMongo/blob/17044edf1e728deacc7865c0604fbcfbfe865e99/driver/src/main/scala/api/cursor.scala#L555
It looks like a quite old behavior (implemented in https://github.com/ReactiveMongo/ReactiveMongo/commit/c94d731dd35ed4a2c0bf37b032d76ba34f806554)
that probably got unnoticed because of default values for "maxDocs" being negative or very high (Int.MaxValue).
This is a very surprising behavior: this means the cursor will cycle on the first ''maxDocs" documents of the collections, indefinitely.
I would prefer that:
- tailable cursors end like normal cursors when maxDocs is reached or continue indefinitely (on same cursor) when maxDocs < 0
- default value for maxDocs in ReactiveMongo-Streaming should be -1, instead of Int.MaxValue.