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

Collection sharded with a hashed key not pre-split correctly

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-04-01, CAR Team 2024-04-15, CAR Team 2024-04-29, CAR Team 2024-05-13
    • 111

      In a two-shard cluster, an empty collection sharded with a hashed key should create two chunks and each shard should own one chunk. When there is a concurrent setFCV operation, the two chunks could both live on only one of the shards. 

      This could be due to shardCollection checking the value of an unstable featureFlag twice during its execution. It is mentioned during discussion that gOneChunkPerShardEmptyCollectionWithHashedShardKey feature  flag is data-racy in presence of an FCV downgrade.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: