Validator BSON is lost if write conflict occurs during collMod

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.7, 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.9, v4.4
    • 169
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When collMod'ing a new validator/validationAction, the original validator BSON is std::move'd to update the durable catalog. If a write conflict happens after this, the collMod will retry however the BSON becomes empty and thus checks like this one will not get hit since we early return if the validator object is empty.

            Assignee:
            Nicholas Zolnierz
            Reporter:
            Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: