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

shardCollection with Time Series options on an existing normal collection must fail

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 7.3.0
    • Component/s: None
    • Catalog and Routing
    • ALL
    • v8.0, v7.3, v7.0, v6.0, v5.0
    • 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" }});
    • CAR Team 2024-02-19, CAR Team 2024-04-15, CAR Team 2024-04-29, CAR Team 2024-05-13, CAR Team 2024-05-27, CAR Team 2024-06-10
    • 2

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

            Assignee:
            Unassigned Unassigned
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: