[SERVER-43081] validate should report when an index's 'multikeyPaths' are set but the 'multikey' flag is false Created: 29/Aug/19  Updated: 29/Oct/23  Resolved: 06/Sep/19

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 3.6.15, 4.0.13, 4.2.1, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-43074 Do not use a global variable to encod... Closed
related to SERVER-52976 [4.2] collection_validation.cpp isn't... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0, v3.6, v3.4
Sprint: Execution Team 2019-09-09
Participants:
Linked BF Score: 0

 Description   

This is an illegal state of the catalog document, and the validate command should detect and report on this state.



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

Author:

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

Message: SERVER-43081 validate should report when an index's 'multikeyPaths' are set but the 'multikey' flag is false
Branch: v3.6
https://github.com/mongodb/mongo/commit/cee48bf8f043912adffbcf8fe10dc248f1810466

Comment by Githook User [ 24/Sep/19 ]

Author:

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

Message: SERVER-43081 validate should report when an index's 'multikeyPaths' are set but the 'multikey' flag is false
Branch: v4.0
https://github.com/mongodb/mongo/commit/ed9d2602949314e87562219b354a2d9f0737fd52

Comment by Githook User [ 13/Sep/19 ]

Author:

{'name': 'Evgeni Dobranov', 'username': 'edobranov', 'email': 'evgeni.dobranov@mongodb.com'}

Message: SERVER-43081 Validate should report when an index's 'multikeyPaths' are set but the 'multikey' flag is false
Branch: v4.2
https://github.com/mongodb/mongo/commit/719513a440fdd5a4b97bdab3bbf0e9748678f3a8

Comment by Githook User [ 06/Sep/19 ]

Author:

{'name': 'Louis Williams', 'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com'}

Message: SERVER-43081 Validate should report when an index's 'multikeyPaths' are set but the 'multikey' flag is false

This also removes the invariant added by SERVER-43008 that performed the
same check in the catalog layer. It is not safe to invariant based on
durable data if it is known that data could be corrupt in an undefined
way (see SERVER-43074), so the safest option is to report a validation
error, which requires rebuilding the index to fix the problem.
Branch: master
https://github.com/mongodb/mongo/commit/a74a733800b410f89953e807a86231c522ba66c0

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