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

Inserting mixed-schema buckets through the system.buckets collection doesn't set the timeseriesBucketsMayHaveMixedSchemaData flag

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0, 7.3.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Minor Change
    • ALL
    • v7.3, v7.2, v7.0, v6.0
    • Execution Team 2024-02-05, Execution Team 2024-02-19

      All newly created time-series collections have timeseriesBucketsMayHaveMixedSchemaData set to false. This flag never gets changed as time-series inserts through the view can never result in mixed-schema buckets. However, one can still insert mixed-schema buckets through the system.buckets collection (direct write) and we wouldn't update the flag to true. mongodump/mongorestore does this. We should check whether buckets inserted via direct writes contain mixed-schema data and set the flag appropriately.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: