[SERVER-72069] CollectionQueryInfo should be initialized for collections created via openCollection Created: 13/Dec/22  Updated: 29/Oct/23  Resolved: 04/Mar/23

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

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

Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-03-06, Execution Team 2023-03-20
Participants:

 Description   

Right now we only initialize CollectionQueryInfo for a collection if it's not being initialized from an existing collection. But this means collections created via CollectionCatalog::openCollection won't have an initialized CollectionQueryInfo, so if CollectionQueryInfo::getIndexKeys() is called on such a collection, it will return wrong information.

We should verify with a test that there's a bug here, and then fix it if it's confirmed to be a bug.



 Comments   
Comment by Githook User [ 04/Mar/23 ]

Author:

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

Message: SERVER-72069 Test instantiating a point-in-time collection using no shared state
Branch: master
https://github.com/mongodb/mongo/commit/e2f623e87cbfb462d9b826c16fd6e4073f554414

Comment by Githook User [ 04/Mar/23 ]

Author:

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

Message: SERVER-72069 Rebuild CollectionQueryInfo for point-in-time reads
Branch: master
https://github.com/mongodb/mongo/commit/73b662301286a563ce8709d9b76b528943e18714

Comment by Githook User [ 04/Mar/23 ]

Author:

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

Message: SERVER-72069 Test using an index for point-in-time reads after the index was dropped
Branch: master
https://github.com/mongodb/mongo/commit/2c1067978908d35c9490088e322bcfadcafcaadb

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