Basic support for viewless timeseries upgrade/downgrade in replica sets

XMLWordPrintableJSON

    • Catalog and Routing
    • CAR Team 2025-12-08
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      Implement basic support for upgrading a legacy timeseries to viewless in replica sets by:

      1. Dropping the view namespace mytimeseries
      2. Renaming the buckets namespace system.buckets.mytimeseries to mytimeseries.
      3. Update the collection metadata to remove the validator (c.f. SERVER-105786).

      For the downgrade we do the opposite steps.

       

      The entire change should be atomic i.e. commit at a single timestamp. We will do this by using a single WriteUnitOfWork and emiting a custom 'c' entry to replicate the steps above on secondaries.

       

      Note this ticket we only provide targeted tests. Test enablement will be done by follow up tickets because many operations (e.g. drop, timeseries read & write path, jstests themselves) do not expect the timeseries format to change mid-operation and will need to be fixed.

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

              Created:
              Updated: