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

Resharding does not extend zone ranges for config.tag docs, leading to config server primary fassert loop from duplicate key error

    • Sharding NYC
    • Fully Compatible
    • ALL
    • v7.0, v6.3, v6.0, v5.0
    • Sharding NYC 2023-04-03, Sharding NYC 2023-04-17, Sharding NYC 2023-05-01, Sharding NYC 2023-05-15
    • 3

      Resharding will add documents to config.tags collection with the new temporary resharding namespace. But these docs, don't extend the zone range to encompass the entire sharding key pattern. The tag documents to be uploaded to config.tags are built here:

      https://github.com/mongodb/mongo/blob/f2a95d46b1d5ba667048a937fd73de43c391f569/src/mongo/db/s/resharding/resharding_util.cpp#L226

      This function should be doing something similar to the resharding split policy (taking in the new resharding key and calling extend range on it) like this:

      https://github.com/mongodb/mongo/blob/f2a95d46b1d5ba667048a937fd73de43c391f569/src/mongo/db/s/config/initial_split_policy.cpp#L696

            Assignee:
            nandini.bhartiya@mongodb.com Nandini Bhartiya
            Reporter:
            kshitij.gupta@mongodb.com Kshitij Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: