-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 8.1.0-rc0, 8.0.0-rc6
-
Component/s: None
-
None
-
Catalog and Routing
-
ALL
-
v8.0, v7.0, v6.0, v5.0
-
-
CAR Team 2024-06-10
-
200
When a bucket namespace exists without its view (which may happen due to SERVER-85855 or because the creation of a timeseries collection has failed before creating the view), it is possible to create a collection or a view with the same name, leading to an inconsistency in the catalog.
db.createCollection('coll', {timeseries: {...}}); // view fail but the bucket has been created db.createCollection('coll'); // succeed // At this point, the collections db.coll and db.system.buckets.coll coexist
db.createCollection('coll', {timeseries: {...}}); // view fail but the bucket has been created db.createView('coll','otherColl'); // succeed // At this point, the view db.coll targeting 'otherColl' and the collection db.system.buckets.coll coexist
As a side note, this has been fixed under the featureFlagTrackUnshardedCollectionsUponCreation for the create command under SERVER-81190, however, there is no plan to enable this feature flag sooner than v8.3.
- fixes
-
SERVER-90742 Building the wrong shard key index when a dangling time-series buckets collection is present
- Backlog
- is depended on by
-
SERVER-92272 Don't drop the buckets collection in $out destructor only if there is a time-series collection
- Blocked
- is fixed by
-
SERVER-73864 Create time-series buckets collection and view in multi-doc transaction
- Backlog
- is related to
-
SERVER-85855 Creating a bucket collection with timeseries option doesn't create the view
- Backlog
-
SERVER-92051 Check if a non-timeseries collection colives with a buckets timeseries coll through the checkMetadataConsistency cmd
- Backlog
- related to
-
SERVER-92271 Renaming a collection or a view should fail if a buckets namespace exists
- Backlog
-
SERVER-79630 Disallow creating and preventing upgrading with system.buckets namespaces which aren't timeseries collections
- Closed
-
SERVER-91971 Do not create unsharded timeseries collection in create_all_type_collection.js unless featureFlagTrackUnshardedCollectionsUponCreation is enabled
- Closed