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

MigrationSourceManager may fail to emit the migrateChunkToNewShard due to stale ChunkManager info

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 5.3.0, 3.6.0, 4.0.0, 4.2.0, 4.4.0, 5.0.0, 5.2.0, 5.1.0, 6.0.0, 6.1.0, 6.2.0-rc0, 6.3.0, 7.0.0, 7.1.0, 7.3.0-rc0
    • None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-02-05, CAR Team 2024-02-19
    • 2

    Description

      The scenario may be reproduced through the following sequence:

      1. A migration with "nss: collName, from: shardId1, to: shardId2" starts; the MigrationSourceManager gets instantiated on shardId1, and placement information gets retrieved; at the time of the retrieval, shardId2 owns 1 collection chunk
      2. A concurrent migration with "nss: collName, from: shardId2, to: anotherShardId" gets concurrently committed; shardId2 loses its last chunk (and the related op entry gets emitted)
      3. The migration started on step 1 is resumed; since shardId2 reacquires its first collection chunk, a migrateChunkToNewShard should be emitted - but the placement information is stale at the time it gets evaluated

      Attachments

        Activity

          People

            paolo.polato@mongodb.com Paolo Polato
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: