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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 2
    • None
    • 3
    • 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
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: