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

Make explicit collection creation in sharding directly forward the create command to the primary shard again

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2020-01-27, Sharding 2020-02-10

      The explicit create command on mongos was made to call _configsvrCreateCollection when we added the implicit collection creation loop through the config server under SERVER-32291.

      To make it easier for the storage execution team to implement DDL in transactions, we should revert the create command behavior back to what it was before. At the moment, they are having trouble because the client's lsid, txnNumber is being propagated on _configsvrCreateCollection, which doesn't play well with the config server upconverting default writeConcern to majority, because writeConcern is not allowed on transaction statements besides commitTransaction.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: