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

Change ValidateResult from BasicCommandWithRequestParser to only throw in test mode

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Replication
    • None
    • Minor Change
    • Repl 2021-02-08

    Description

      The goal of validating the result of a command as part of enforcing "API Versioning" constraints is to catch any breaking changes in our code at testing phase, and not to block customers' runs.

       

      So we need to make sure that we only throw validation exception in "Debug_mode" only.

      We need to wrap this Line in if (getTestCommandsEnabled()) clause.

      Attachments

        Activity

          People

            m.maher@mongodb.com Moustafa Maher
            m.maher@mongodb.com Moustafa Maher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: