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

Always write all three validator variables in the validator setter functions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0, 5.0.0-rc1
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0
    • Sprint:
      Execution Team 2021-05-31
    • Linked BF Score:
      168

      Description

      When calling setValidator, setValidationLevel or setValidationAction we should write all three variables in the metadata.

      This was how it worked prior to SERVER-56002. When we do a different write there may be a difference on disk depending on if the defaults are written or not.

      This difference is can be observed in a multiversion environment (with or without SERVER-56002) when doing repl rollback.

        Attachments

          Activity

            People

            Assignee:
            henrik.edin Henrik Edin
            Reporter:
            henrik.edin Henrik Edin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: