[SERVER-77374] listIndexes on timeseries collection doesn’t include 2dsphereIndexVersion Created: 22/May/23  Updated: 29/Oct/23  Resolved: 25/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alyssa Clark Assignee: Malik Endsley (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

MongoDB Enterprise > db.createCollection("timeseries", {timeseries: {timeField: "t"}})
MongoDB Enterprise > db.timeseries.createIndex({x: "2dsphere"})
MongoDB Enterprise > db.timeseries.getIndexes()
[
        {
                "v" : 2,
                "key" : {
                        "x" : "2dsphere"
                },
                "name" : "x_2dsphere"
        }
]
MongoDB Enterprise > db.system.buckets.timeseries.getIndexes()
[
        {
                "v" : 2,
                "key" : {
                        "data.x" : "2dsphere_bucket"
                },
                "name" : "x_2dsphere",
                "2dsphereIndexVersion" : 3,
                "originalSpec" : {
                        "key" : {
                                "x" : "2dsphere"
                        },
                        "name" : "x_2dsphere",
                        "v" : 2
                }
        }
]
MongoDB Enterprise > db.nontimeseries.createIndex({x: "2dsphere"})
MongoDB Enterprise > db.nontimeseries.getIndexes()
[
        {
                "v" : 2,
                "key" : {
                        "_id" : 1
                },
                "name" : "_id_"
        },
        {
                "v" : 2,
                "key" : {
                        "x" : "2dsphere"
                },
                "name" : "x_2dsphere",
                "2dsphereIndexVersion" : 3
        }
]
MongoDB Enterprise >  

Sprint: Execution NAMR Team 2023-07-10, Execution NAMR Team 2023-07-24, Execution NAMR Team 2023-08-07, QI 2023-06-12
Participants:
Linked BF Score: 0

 Description   

listIndexes on normal collections and the system.buckets collection include a 2dsphereIndexVersion field in the response for a 2dsphere index, but listIndexes on the timeseries view does not.

 

This block seems to be the culprit, because the index version field is on the top-level index spec object and not the originalSpec sub-object.



 Comments   
Comment by Githook User [ 24/Jul/23 ]

Author:

{'name': 'Malik Endsley', 'email': 'malik.endsley@mongodb.com', 'username': 'malikendsley'}

Message: SERVER-77374 Include 2dsphereIndexVersion field on timeseries indexes
Branch: master
https://github.com/mongodb/mongo/commit/7391fe3982d32c057571e4d78a53018570a2717c

Comment by Gregory Noma [ 20/Jun/23 ]

We may want to also make sure this doesn't happen for any other index types

Generated at Thu Feb 08 06:35:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.