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

serverStatus metric "document.returned" incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 2.7.6
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Description

      Regression since 2.7.5; affects 2.7.6 and master.

      The metrics "document.returned" from serverStatus().metrics no longer gets updated properly.

      Reproduce with:

      // Test "document.returned" when query returns documents.
      db.foo.drop();
      db.foo.insert({});
      db.foo.insert({});
      db.foo.insert({});
      oldMetrics = db.serverStatus().metrics;
      db.foo.find().itcount();
      newMetrics = db.serverStatus().metrics;
      assert.eq(newMetrics.document.returned, oldMetrics.document.returned + 3);

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: