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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.1
    • None
    • None
    • ALL

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: