-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Admin
-
None
-
ALL
-
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Once we went to using shards, there have been several issues with cursors that occur randomly. One issue we having is a timeout condition where a MongoException is thrown. All of the information that I have found indicates that this is due to the cursor not being used within 10 minutes. However, I know this is not the case because I was able to create a test case that recreated the problem. It doesn't happen very often but it does occur.
Our application is primarily a write oriented where multiple threads extract data from external source and write the data to one or more collections. There may be 1 or 30 million entries in a collection at the end of the data gathering process. This data is then processed and filter into other collections. While processing and filtering the data, a cursor is usually obtained. Most of the time there isn't a problem but ever so often the MongoException is throw while processing the cursor. Altering the batch size for the cursor doesn't seem to change anything.
We actually have recovery code in place that catches the exception and creates a new cursor and then does a skip() to the current count. This error will occur anywhere from 10 to 40 times a day. I am not sure how many cursors are actually opened but the number of times this occurs is enough to warrant attention.
- is duplicated by
-
SERVER-24723 Error "Cursor not found" while cursor.hasnext()
-
- Closed
-