[SERVER-24723] Error "Cursor not found" while cursor.hasnext() Created: 22/Jun/16  Updated: 04/Oct/16  Resolved: 04/Oct/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.2.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Olga Bozhkova [X] Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-24474 cursor next/hasnext throws MongoExcep... Closed
Operating System: ALL
Participants:

 Description   

While function execution via MongoShell 3.2.1 there is the following error

"ok" : 0,
"errmsg" : "Cursor not found, cursor id: 153428771771",
"code" : 43

Function implements cycle with cursor as follows

Bar.java

function(dateBeg, dateEnd) {
var db1 = connect('IP:27017/databaseName');
    db1.auth("login","password");     
 
var   result = 
   db.transactions.aggregate([...],{allowDiskUse:true},
   {noTimeout: true}
   );
  
    while (result.hasNext()) 
  {
    p =  result.next();
    db1.MAS_aggregated_data.insert(p);      
  };
    result.close();
}



 Comments   
Comment by Kelsey Schubert [ 04/Oct/16 ]

Hi Olga.Bozhkova,

Sorry for the silence, we've been investigating this issue as part of SERVER-24474. Unfortunately, we have not been able to reproduce this issue. If this is still an issue for you and you can provide additional details around the conditions required to observe this behavior, please let us know and we will continue to investigate.

Kind regards,
Thomas

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