[JAVA-3802] I got an error 'Query failed with error code -5 and error message Cursor'. This error make our server load up to 100%, Created: 31/Jul/20 Updated: 03/Aug/20 Resolved: 03/Aug/20 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 4.0.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Chen Jian | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I got an error 'Query failed with error code -5 and error message Cursor'. This error make our server load up to 100%. The java driver throw a no cursor found exception like this: org.springframework.dao.DataAccessResourceFailureException: Query failed with error code -5 and error message 'Cursor 3180947591717134009 not found on server 10.105.21
I got the cursor id in mongos.log. like this:
2020-07-31T10:46:27.153+0800 I COMMAND [conn288126] command tmxbase.TranslationSegmentCollection_50 command: find { find: "TranslationSegmentCollection_50", filter: { documentId: "2020072309573638910900167092931_zh-CN" }, sort: { seqNum: 1 }, $db: "tmxbase", $clusterTime: { clusterTime: Timestamp(1596163425, 4), signature: { hash:BinData(0, 2FC1FA509A43BC53338067B27B62EDA5A7E73EA7), keyId: 6828170725514280961 } }, lsid: { id: UUID("337b7651-68a0-4771-b2a5-d6ea9a683820") } } nShards:2 cursorid:3180947591717134009 numYields:0 nreturned:101 reslen:242627 protocol:op_msg 161686ms }, lsid: { id: UUID("337b7651-68a0-4771-b2a5-d6ea9a683820") } } originatingCommand: { find: "TranslationSegmentCollection_50", filter: { documentId: "2020072309573638910900167092931_zh-CN" }, sort: { seqNum: 1 }, $db: "tmxbase", $clusterTime: { clusterTime: Timestamp(1596163425, 4), signature: { hash: BinData(0, 2FC1FA509A43BC53338067B27B62EDA5A7E73EA7), keyId: 6828170725514280961 }}, lsid: { id: UUID("337b7651-68a0-4771-b2a5-d6ea9a683820") } } nShards:2 cursorid:3180947591717134009 numYields:0 ok:0 errMsg:"cursor id 8226761856981 not found" errName:CursorNotFound errCode:43 reslen:248 protocol:op_msg 465374ms
To get the curor, the mongodb consume a lot time and failed.
I try to modify the mongodb driver's maxWaiting time to 15s, but this didn't work.
Anyone have the same problem?
|
| Comments |
| Comment by Esha Bhargava [ 03/Aug/20 ] |
|
Hi there, thank you for reaching out. As this sounds like a support issue, I wanted to give you some resources to get this questioned answered more quickly:
|