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

Validator BSON is lost if write conflict occurs during collMod

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: