You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
I'm using the MongoDB python driver 2.7.2. I use an infinite loop to poll new messages from a capped collection and process them as they come (with a tailable cursor and await data). It works for the most part, but in production, it seems that from time to time the call to cursor.next() blocks forever. This causes the application to hang forever until restart.
Why is this happening in the first place ? how to handle this situation ?
Luke Lovett
unread,
Aug 8, 2016, 1:10:31 PM8/8/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You might also find this example of using tailable cursors with pymongo useful: http://api.mongodb.com/python/3.3.0/examples/tailable.html. Keep in mind that this example is written for version 3.3 of PyMongo, which has a slightly different syntax than the old 2.x version of PyMongo, but the same concepts still apply.