[JAVA-3218] MongoCursorNotFoundException should be reported for error code 13127 Created: 28/Feb/19  Updated: 04/Mar/19  Resolved: 04/Mar/19

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Ross Lawley Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently only errors with the code 45 43 are upconverted to MongoCursorNotFoundException. Error code 13127 amounts to the same error:

com.mongodb.MongoQueryException: Query failed with error code 13127 and error message 'cursor id 532733241092 didn't exist on server.' on server localhost:27017



 Comments   
Comment by Ross Lawley [ 04/Mar/19 ]

david.storch thanks for checking - I did mean 43. Looks like 13127 is an old code (https://github.com/mongodb/mongo/blob/r3.4.4/src/mongo/client/dbclientcursor.cpp#L290-L291) and no longer needed.

I'll close this as Won't Fix.

Comment by David Storch [ 04/Mar/19 ]

ian.whalen ross.lawley, I'm a bit confused by this question. Code 45 is "UserDataInconsistent". I assume you meant code 43, "CursorNotFound"?

More importantly, I see no references to unnamed code 13127 in either the master or 4.0 branches. I didn't check older branches. Questions for you:

  • What version of the server was the driver running against when it saw code 13127?
  • What was the driver trying to do when it raised this error?
Comment by Ian Whalen (Inactive) [ 04/Mar/19 ]

david.storch is error code 13127 stable? any reason we aren't using error code 45 for this?

Generated at Thu Feb 08 08:59:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.