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

Use the routing table to construct the historical placement doc on reshardCollection commit

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2023-04-03

      The commit of reshardCollection includes a statement to persist the updated placement metadata into config.placementHistory using the value of the recipientShards field of the DDL coordinator document.

      Nevertheless, such value may not correspond to the true placement of the resharded collection, since it always includes the primary shard of the parent database (which may not own any chunk at the end of the operation) and the routing table should be accesses instead.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: