Priority: Minor - P4
Resolution: Works as Designed
Affects Version/s: None
Fix Version/s: None
Environment:MongoDB 2.4.6 ; pymongo==3.0.2-1-dce3f36
I observed some code infinite loop when using a tailable cursor on a capped collection.
The issue seems to be that after a find(...), cursor.alive is True even if the MongoDB isn't there, and continues being true after cursor.next() fails.
Also coll.find() continues to work even with no MongoDB.
This occurred in part of a data pipeline where we had a thread polling the tailable cursor and forwarding the data on to downstream consumers.
Repro looks like this (MongoTestServer is a fixtured MongoDB):
This prints "cursor.alive" forever AFAICS.
Also this works without any MongoDB: