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

[test-only bug] Don't use randomize data shard for createCollection if registerExistingCollectionInGlobalCatalog is set

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2024-11-25, CAR Team 2024-12-09
    • 1

      Currently, if the `createUnshardedCollectionRandomizeDataShard` fp is enabled, we will apply the random data shard setting even when tracking a collection. This can cause issues where a collection exists already and has data on shard1 (primary shard) and a random data shard shard0 is chosen which effectively causes the data on shard1 to get orphaned since the catalog entry points to shard0. This is only a concern in test suites where this failpoint is enabled. If the failpoint is disabled, only the primary shard (which is the actual data owning shard for an untracked unsharded collection) is chosen for the catalog entry.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            kshitij.gupta@mongodb.com Kshitij Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: