Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24723

Error "Cursor not found" while cursor.hasnext()

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.1
    • Component/s: None
    • None
    • ALL

      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();
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            Olga.Bozhkova Olga Bozhkova [X]
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: