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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.9, 2.2.7, 2.4.14, 2.6.12, 3.0.15, 3.2.15, 3.4.6
    • Sharding
    • None
    • Sharding
    • ALL

    Description

      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:

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: