Add sanity check to prevent creating timeseries without clustered index

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: 8.2.0-rc0
    • Component/s: Catalog
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-08-04
    • None
    • 3
    • TBD
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      Timeseries collections should always have a clustered index, which is implicitly added in the createCollection path.

       

      However with viewless timeseries collections, collection cloning code (e.g. chunk migration, shard collection) may incorrectly call into listCollections without rawData, then pass the options directly into lower catalog layers, which ends up creating a timeseries collection without a clustered index.

       

      While the inconsistency is normally detected by existing validations, we should add a tripwire assertion around DatabaseImpl::_createCollection to fail as fast as possible.

              Assignee:
              Joan Bruguera Micó
              Reporter:
              Joan Bruguera Micó
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: