Reduce number of scanned index entries on chunk migration commit

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • Fully Compatible
    • ALL
    • v6.2
    • Sharding EMEA 2022-12-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: