[SERVER-63023] Check that the time-series metric indexes feature flag is enabled before checking for mixed schema data Created: 26/Jan/22  Updated: 29/Oct/23  Resolved: 27/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-02-07
Participants:
Linked BF Score: 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'  :



 Comments   
Comment by Githook User [ 27/Jan/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-63023 Check that the time-series metric indexes feature flag is enabled before checking for mixed schema data
Branch: master
https://github.com/mongodb/mongo/commit/f44d4a644c49e2370d4dfe1792dda5855d5d67ad

Generated at Thu Feb 08 05:56:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.