[SERVER-41394] Improve error message when trying to create wildcard index on 4.2 under FCV 4.0 Created: 30/May/19  Updated: 29/Oct/23  Resolved: 03/Jun/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.14

Type: Improvement Priority: Major - P3
Reporter: James Wahlin Assignee: Xin Hao Zhang (Inactive)
Resolution: Fixed Votes: 0
Labels: bf-friday
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

An attempt to create a wildcard index under FCV 4.0 with a 4.1/4.2 binary, mongod returns the following error:

{
    "ok" : 0,
    "errmsg" : "Unknown index plugin 'wildcard'",
    "code" : 67,
    "codeName" : "CannotCreateIndex"
} 

We should change this error to state that featureCompatibilityVersion must be 4.2 to create a wildcard index.



 Comments   
Comment by Githook User [ 03/Jun/19 ]

Author:

{'name': 'Xin Hao Zhang', 'email': 'xinhao.zhang@mongodb.com'}

Message: SERVER-41394 Improve error message for wildcard index creation
Branch: master
https://github.com/mongodb/mongo/commit/9deda22adbf2683fb7e1c14f906238c843c31002

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