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

UnknownError can be returned on PlanExecutor::DEAD in find/getMore

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.8
    • Component/s: Querying
    • None
    • ALL
    • Hide
      db.capped.drop();
      assert.commandWorked(db.runCommand({create: "capped", capped: true, size: 4096}));
      
      var smallPadding = new Array(500).join("x");
      assert.writeOK(db.capped.insert({x: smallPadding}));
      assert.writeOK(db.capped.insert({x: smallPadding}));
      assert.writeOK(db.capped.insert({x: smallPadding}));
      var cursor = db.capped.find().batchSize(2);
      cursor.next();
      cursor.next();
      
      var largePadding = new Array(2000).join("y");
      assert.writeOK(db.capped.insert({x: largePadding}));
      assert.writeOK(db.capped.insert({x: largePadding}));
      cursor.next();
      
      Output
      2016-06-14T11:12:37.810-0400 E QUERY    Error: error: {
        "$err" : "getMore executor error: UnknownError no details available",
        "code" : 17406
      }
          at Error (<anonymous>)
          at DBQuery.next (src/mongo/shell/query.js:259:15)
          at (shell):1:8 at src/mongo/shell/query.js:259
      
      Show
      db.capped.drop(); assert.commandWorked(db.runCommand({create: "capped" , capped: true , size: 4096})); var smallPadding = new Array(500).join( "x" ); assert.writeOK(db.capped.insert({x: smallPadding})); assert.writeOK(db.capped.insert({x: smallPadding})); assert.writeOK(db.capped.insert({x: smallPadding})); var cursor = db.capped.find().batchSize(2); cursor.next(); cursor.next(); var largePadding = new Array(2000).join( "y" ); assert.writeOK(db.capped.insert({x: largePadding})); assert.writeOK(db.capped.insert({x: largePadding})); cursor.next(); Output 2016-06-14T11:12:37.810-0400 E QUERY Error: error: { "$err" : "getMore executor error: UnknownError no details available", "code" : 17406 } at Error (<anonymous>) at DBQuery.next (src/mongo/shell/query.js:259:15) at (shell):1:8 at src/mongo/shell/query.js:259
    • 0

      We backported part of the PlanExecutor::DEAD changes to the 3.0 branch in order to address SERVER-20973. However, the backport missed the changes to plan_executor.cpp to set objOut as the status member object.

            Assignee:
            Unassigned Unassigned
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: