Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61261

Misleading error message from fcv idl parser.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Server Serverless 2021-11-15, Server Serverless 2021-11-29

      The type: fcv_string is been used in couple of different idls other than the idl that defines feature compatibility version document schema  for admin.system.version collection. For e.g, setFeatureCompatibilityVersion cmd  & tenant migration state document have fields uses this fcv_string type. In case parsing those fcv type fields fails, we through a misleading error message.

      Running adminDB.adminCommand({setFeatureCompatibilityVersion: "4.9"} on  5.2 binary will throw an error msg as "Invalid value for featureCompatibilityVersiondocument in admin.system.version, found 4.9, expected '5.0' or '5.1' or '5.2'. 

      I think we need to make the error message as generic.

            Assignee:
            suganthi.mani@mongodb.com Suganthi Mani
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: