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

Lazily enforce that persisted collection validators are well formed

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.4, 4.3.4
    • Component/s: Querying, Write Ops
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      Query 2020-01-27, Query 2020-02-10
    • Linked BF Score:
      38

      Description

      SERVER-45588 came out of a case where a user had persisted collection validators that were considered valid in 4.0 but not in 4.2 because some checks around RegexMatchExpressions were made tighter in 4.2. This prevented upgrade.

      To avoid this kind of situation in the future, we should not enforce that collection validators which have been persisted are valid until we attempt to use them (when insertions are done). We should still enforce that validators are well formed when setting/creating them (through collMod or createCollection).

       

      It looks like this would be relatively straightforward given the way CollectionImpl enforces that validators are well formed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ian.boros Ian Boros
              Reporter:
              ian.boros Ian Boros
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: