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

Create core_sharding test to cover cases we expect shardCollection to return InvalidOptions

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We currently don't have good coverage for the un-happy path of shardCollection in core_sharding. In particular, we don't have good coverage for all those cases in which we expect shardCollection to fail for an incompatible state of the pre-existing collection.

      For instance, when the existing collection has a unique index and the requested shard key is not a prefix of this index key we expect shardCollection to fail with InvalidOptions.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None