-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 8.3.0-rc0
-
Component/s: Catalog, Replication, Upgrade/Downgrade
-
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:
- Dropping the view namespace mytimeseries
- Renaming the buckets namespace system.buckets.mytimeseries to mytimeseries.
- 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.
- depends on
-
SERVER-114543 CollectionCatalog can't replace a collection with a view in the same WriteUnitOfWork
-
- In Code Review
-
- is related to
-
SERVER-105786 Add buckets schema validation for viewless timeseries collections
-
- Closed
-
-
SERVER-114531 Fix or document impact of timeseries upgrade/downgrade on snapshot reads
-
- Closed
-
- related to
-
SERVER-114517 Investigate timeseriesUpgradeDowngrade oplog command during initial sync
-
- Backlog
-