-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 6.0.9
-
Component/s: None
-
None
-
Storage Execution
-
ALL
-
db = db.getSiblingDB("test"); db.getSiblingDB("admin").runCommand({ shardCollection: "test.weather", timeseries: { timeField: "timestamp", metaField: "metadata" }, key: {timestamp: 1} }); db.system.buckets.weather.drop()
The above fails with this error in v6.0.9:
MongoServerError: drop collection of a sharded time-series collection is not supported
This error is misleading; it seems quite possible to drop a sharded time-series collection, but it has to be done on the logical collection (i.e., the view) rather than the buckets.
Suggested revision:
Drop on a sharded time-series system.buckets collection is unsupported; drop the view instead.
- depends on
-
SERVER-84589 Error when directly dropping a sharded time-series buckets collection is misleading.
- Closed