[SERVER-65797] Remove invalid index specs in memory before parsing for listIndexes Created: 19/Apr/22  Updated: 27/Dec/23  Resolved: 09/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.2, 6.0.0-rc6, 5.0.10, 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Yuhong Zhang Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
causes SERVER-84434 Chunk migration may fail due to index... Open
causes SERVER-78369 ignoreUnknownIndexOptions doesn't acc... Closed
Related
related to SERVER-64444 listIndexes fails on invalid pre-5.0 ... Closed
related to SERVER-65549 Fix invalid index options when upgrad... Closed
related to SERVER-59805 Provide a way to check for and to rem... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.3, v5.0
Sprint: Execution Team 2022-05-02, Execution Team 2022-05-16
Participants:

 Description   

We don't want listIndexes to error on invalid index specs created before 5.0 when we started stricter validation on index specs.



 Comments   
Comment by Githook User [ 19/May/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-65797 Remove invalid index specs in memory before parsing for `listIndexes`

(cherry picked from commit 142cdf278feee6ce0c4bb1b121fd13d69c61de34)
(cherry picked from commit 788627e58f5d488a833b73739d0dc8d9ff96d5e7)
Branch: v5.0
https://github.com/mongodb/mongo/commit/8f033ff230923dcbfa782636122489c4d0046fdc

Comment by Githook User [ 17/May/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-65797 Remove invalid index specs in memory before parsing for `listIndexes`

(cherry picked from commit 142cdf278feee6ce0c4bb1b121fd13d69c61de34)
Branch: v5.3
https://github.com/mongodb/mongo/commit/788627e58f5d488a833b73739d0dc8d9ff96d5e7

Comment by Githook User [ 10/May/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-65797 Remove invalid index specs in memory before parsing for `listIndexes`
Branch: v6.0
https://github.com/mongodb/mongo/commit/142cdf278feee6ce0c4bb1b121fd13d69c61de34

Comment by Githook User [ 10/May/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-65797 Adding comments to remind of updating allowed field names set
Branch: master
https://github.com/mongodb/mongo/commit/3333ea4243ae70c176e6c5a427ce7c094b035e68

Comment by Githook User [ 09/May/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-65797 Remove invalid index specs in memory before parsing for `listIndexes`
Branch: master
https://github.com/mongodb/mongo/commit/8de3932931f6db1a37fc7077fd01e25f7e652769

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