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

shardCollection with TS options on an existing normal collection must fail

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Catalog and Routing
    • ALL
    • Hide

      db.getSiblingDB("test").createCollection("coll")
      db.getSiblingDB('admin').runCommand({shardCollection: 'test.coll', key: {timestamp:1}, timeseries: { timeField: "timestamp", metaField: "metadata" }});
      

      Show
      db.getSiblingDB("test").createCollection("coll") db.getSiblingDB('admin').runCommand({shardCollection: 'test.coll', key: {timestamp:1}, timeseries: { timeField: "timestamp", metaField: "metadata" }});
    • 2

    Description

      Attempt to shard a normal collection passing timeseries option should fail instead is succeeding.

      Attachments

        Activity

          People

            backlog-server-catalog-and-routing Backlog - Catalog and Routing
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: