[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: |
| Comment by Githook User [ 04/Mar/23 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |
| Comment by Githook User [ 04/Mar/23 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |