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

Reduce number of scanned index entries on chunk migration commit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 6.0.0, 6.1.0, 6.0.2, 6.0.3, 6.2.0-rc1
    • 6.0.4, 6.2.0-rc2, 6.3.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.2
    • Sharding EMEA 2022-12-12

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: