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

Reduce number of scanned index entries on chunk migration commit

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.4, 6.2.0-rc2, 6.3.0-rc0
    • Affects Version/s: 6.0.0, 6.1.0, 6.0.2, 6.0.3, 6.2.0-rc1
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.2
    • Sharding EMEA 2022-12-12

      In SERVER-64148 we changed the ShardingCatalogClient::commitChunkMigration implementation to make it compatible with the new moveRange command. This command can move a sub range of an existing chunk.

      In particular we changed the query to find the chunk being moved. Since the new query is not sorted and use a limit of 2 it will need to scan all the index entries with min value less than the minimum shard key of the range to migrate.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: