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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.8
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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
    • Linked BF Score:
      0

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: