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

Construct sub-batching bulkWrite command to send to shard

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Replication
    • Fully Compatible
    • Repl 2023-02-20, Repl 2023-03-06, Repl 2023-03-20

      When constructing the bulkWrite command for each shard endpoint out of a TargetedWriteBatch, we will need to calculate the namespaces used in this sub-batch to construct the nsInfo and re-index each operation's namespace index (ns_idx). Additionally, we need to attach the databaseVersion and shardVersion fields to each entry in the nsInfo based on the endpoint returned by the CollectionRoutingInfoTargeter in the targeting step.

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: