Log nreturned value and increment metrics.document.returned for update commands

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, update commands like findAndModify may return a document but a nreturned value is not logged, nor is metrics.document.returned incremented in serverStatus. docsExamined and keysExamined are both logged and both metrics.queryExecutor.scannedObjects and metrics.queryExecutor.scanned, respectively, are incremented in serverStatus. This can result in highly inflated Query Targeting ratios during periods of frequent updates.

      We should account for any documents being returned via update commands.

            Assignee:
            Rui Liu
            Reporter:
            David Walker
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: