Renaming `system.buckets` collections across db creates a temporary collection without the proper prefix

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: 7.0.0, 8.0.0, 8.1.3, 8.2.0-rc4
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-08-18
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      When renaming a buckets collection across databases, the temporary collection name is created without the system.buckets. prefix.

      This can be problematic for several reasons:

      • In v8.0/master or v8.2/master multiversion scenarios, oplog application may fails (crash old secondaries) because inserts on non-buckets collections with timeseries options would be interpreted as on viewless timeseries. This leads to generate an oplog entry with the OplogEntryBase.isViewlessTimeseries field.
      • In previous versions, checkMetadataConsistency may report the inconsistency (non-buckets collection with TS options)

            Assignee:
            Pierlauro Sciarelli
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: