Fix shardKey logging for mongos bulkWrite commands

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • v8.1, v8.0, v7.0
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As of SERVER-97142, the ScopedDebugInfo for the shard key diagnostic logging for mongos bulkWrite commands is declared at the point of targeting individual commands to the shards. This should be moved earlier, to where we create the NSTargeters for each write in the bulkWrite here. Note that this will also require modifying the printer to accept multiple shard keys/namespaces at once. (Alternatively, maybe we can create a new printer for the mongos bulkWrite command that can do this specifically.)

            Assignee:
            Militsa Sotirova
            Reporter:
            Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: