Check for timeseries bucketing parameters & clusteredIndex inconsistencies

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 7.0.0, 8.0.0, 8.3.0-rc0, 8.2.0
    • Component/s: None
    • None
    • Catalog and Routing
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      In MongoDB 7.0 it was possible to create a timeseries buckets collection directly like this:

      db.createCollection("system.buckets.xyzzy", {timeseries:{timeField:'t'}}) 

       

      The resulting buckets collection doesn't have many required options (for example a clustered index and the granularity), for this reason SERVER-88200 added a check that forbids writing to those collections.

       

      In SERVER-90889 we added an inconsistency type in checkMetadataConsistency to report inconsistent buckets collections, we should extend it to also report this case as an inconsistency.

      The same logic is being used in SERVER-114830 to validate buckets collections to upgrade to viewless timeseries.

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

              Created:
              Updated: