MongoDB: cannot use a cursor to iterate through all the data
Update on update: Solved ! See this: MongoDB: cannot iterate through all data with cursor (because data is corrupted) It's caused by corrupted data set. Not MongoDB or the driver. ========================================================================= I'm using the latest Java driver(2.11.3) of MongoDB(2.4.6). I've got a collection with ~250M records and I want to use a cursor to iterate through all of them. However, after 10 minutes or so I got either a false cursor.hasNext(), or an exception saying that the cursor does not exist on server. After that I learned about cursor timeout and