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

serverStatus metric "document.returned" incorrect

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.6
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL

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

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: