-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
When $out outputs to timeseries, it does so in two steps, first the temporary collection is renamed into the buckets collection, then the view is created. These two operations are done without taking locks, meaning that any DDL operation can interleave and create issues (see linked tickets). Taking locks during this critical section should prevent those issues.
- is related to
-
SERVER-82085 Race condition between $out to timeseries and shard collection
- Closed
-
SERVER-94829 Incorrect behavior of drop of buckets collection when combined with $out
- Closed