Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Execution Team 2022-02-07
-
153
Description
Time-series metric indexes can be built if the feature flag is disabled by building an index directly on the buckets collection:
> use admin;
|
switched to db admin
|
> db.runCommand({setFeatureCompatibilityVersion: "5.0"}); |
{ "ok" : 1 } |
> use test;
|
switched to db test
|
> db.createCollection("ts", {timeseries: {timeField: "time"}}); |
{ "ok" : 1 } |
> db.getCollection("ts").insert({_id: 0, time: ISODate(), a: 123}); |
WriteResult({ "nInserted" : 1 }) |
> db.getCollection("system.buckets.ts").createIndex({a: 1}); |
uncaught exception: Error: error doing query: failed: network error while attempting to run command 'createIndexes' on host '127.0.0.1:27017' : |