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

change stream getMores inconsistently increment collStats

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • ALL

      when you open a change stream the aggregation command affects the latencyStats.reads on the oplog but subsequent getMore commands increment latencyStats.reads on the collection being watched despite not actually reading from that collection.

      the bug may or may not be here https://github.com/mongodb/mongo/blob/f17987ea0fc43ad4d3b34dedd39336f0faac734c/src/mongo/db/commands/query_cmd/getmore_cmd.cpp#L674 when we create an AutoStatsTracker for the command namespace and not the cursor's namespace

            Assignee:
            Unassigned Unassigned
            Reporter:
            mickey.winters@mongodb.com Mickey Winters
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: