Add sanity check to prevent creating timeseries without clustered index

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.2.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • 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:
            Unassigned
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: