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

Check for removed parameters in IDL compatibility checker script

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2021-01-25, Repl 2021-02-08, Repl 2021-02-22

      We should be checking whether each parameter in the old command exists in the new command and hasn't become unstable in the new command. If the parameter is optional in the old command, it should be optional in the new command as well. This corresponds to the following pseudocode:

      for each command old_cmd:
          for each parameter old_param in old_cmd:
              if old_param.unstable:
                  # No guarantees, even if !new_param.unstable.
                  continue
      
              new_param :=
                  get parameter from new_cmd with old_param's name
      
              assert new_param exists and !new_param.unstable
              if old_param.optional:
                  assert new_param.optional
      

            Assignee:
            ali.mir@mongodb.com Ali Mir
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: