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

XMLWordPrintableJSON

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

      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
            Reporter:
            Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: