Bulk write updateMany and deleteMany may not increment query metrics

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-03-17, QE 2025-03-31, QE 2025-04-14
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The implementation of bulkWrite metrics should be equivalent to a single bulkWrite operation. That is, successive insert ops (on the same namespace) in the bulkWrite are grouped into one call of "opCounters.inserts" and every update/delete op (regardless if its on the same namespace or not) increments its own metric. For example, a single update command with 5 update ops will increment this metric 5 times.

      Ensure the updateMany and deleteMany cases also follow this pattern. Please refer to this slack conversation for more context. 

              Assignee:
              Kristina Znam
              Reporter:
              Kruti Shah
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: