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

Change command "type" struct field compatibility checker to check for new non-optional fields

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2021-03-08

      Checking for incompatible command type changes should match the logic of checking for incompatible command parameter changes. 

      Specifically, if the command type is a struct, if a new non-optional field is added to the struct, it should fail. If an old unstable field in the struct is changed to a stable, non-optional field, it should also fail. 

            Assignee:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Reporter:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: