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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • 3.0.8
    • None
    • 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

    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

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

              Dates

                Created:
                Updated:
                Resolved: