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

createIndexes can implicitly create collections on shards without propagating the collection options

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.9, 2.2.7, 2.4.14, 2.6.12, 3.0.15, 3.2.15, 3.4.6
    • Component/s: Sharding
    • None
    • Sharding
    • ALL

      On mongos, createIndexes is broadcast to all shards, rather than only shards that own data for the collection.

      So, createIndexes can implicitly create collections on shards that don't own data for the collection. When this happens, the collection is implicitly created without the right collection options (collation, compression, etc).

      This is a beginning-of-time bug:

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: