Create collection with dataShard might generate unreachable collections

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Similarly to SERVER-86593 if the dataShard parameter is specified when trying to create an unsplittable collection, and we use the shard URL instead of the shard name, the create collection coordinator will commit the collection metadata in the config server, but the collection will be unreachable from the cluster. You can find a reproducible attached to the ticket.

      We should use something similar to move primary to ensure the proper shard id is selected.

        1. test_create_collection_with_url.js
          0.3 kB
          Marcos José Grillo Ramirez

            Assignee:
            Unassigned
            Reporter:
            Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: