Warnings for time-series collections sharded on time field

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • Execution Team 2024-04-29, Execution Team 2024-05-13, Execution Team 2024-05-27, Execution Team 2024-06-10, CAR Team 2024-06-24, CAR Team 2024-07-08, CAR Team 2024-07-22
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Sharding time-series collections on the time field adds a lot of complexity for the sharding team and has questionable customer benefit. The meta field is providing enough cardinality to use as the sole shard key option for time-series collections.

      The complexity is coming from that chunk boundaries do not overlap with bucket boundaries and buckets may contain logical data outside its chunk boundaries.

      To be able to deprecate this feature we need warnings for users:

      • startup warning when a time-series collection is sharded on time
      • warning if the shardCollection command is performed on a time-series collection with time as shard key.

      We might want to outright prohibit shardCollection with time as shard key rather than issue a warning.

            Assignee:
            Wolfee Farkas
            Reporter:
            Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: