[SERVER-36444] Ensure that "allPaths" indexes can be fully validated Created: 03/Aug/18  Updated: 29/Oct/23  Resolved: 19/Sep/18

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 4.1.4

Type: Task Priority: Major - P3
Reporter: Bernard Gorman Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-36198 Enable $** index builds by default in... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2018-09-10, Query 2018-09-24
Participants:

 Description   

At present, allPaths indexes cannot be validated, both because their two-field keys do not align with the single-field $** keyPattern and because allPaths' multikey metadata keys are not considered by the current process.

We should ensure that allPaths indexes can be fully validated, including both their data and metadata keys.



 Comments   
Comment by Githook User [ 19/Sep/18 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: Revert "SERVER-36444 disable validation in allPaths tests"

This reverts commit 118cc1eeb978f9c5c8492368fe6b5a04669fe3c3.
Branch: master
https://github.com/mongodb/mongo/commit/6818230171cb12727892802c608ba9247815ef06

Comment by Githook User [ 19/Sep/18 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: SERVER-36444 Validate support for $** multikey metadata path index keys

Additionally, don't fail validation on encountering multiple index
entries for a single RecordId for non-multikey $** indexes.
Branch: master
https://github.com/mongodb/mongo/commit/de786cd0b6253192bd202b7da8c514a3fc01cd78

Comment by Githook User [ 19/Sep/18 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@10gen.com'}

Message: SERVER-36444 disable validation in allPaths tests
Branch: master
https://github.com/mongodb/mongo/commit/118cc1eeb978f9c5c8492368fe6b5a04669fe3c3

Comment by James Wahlin [ 12/Sep/18 ]

This work will be done in 2 commits. The first (above) ignored $** multikey metadata paths when performing validation, and reenables validation in our tests. The second will add a mechanism to properly validate these entries.

Comment by Githook User [ 12/Sep/18 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: SERVER-36444 Skip validation for $** multikey metadata index entries
Branch: master
https://github.com/mongodb/mongo/commit/97463e76ee061aa048e364aaa2ce1211d9fc4b0d

Generated at Thu Feb 08 04:43:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.