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

Validator BSON is lost if write conflict occurs during collMod

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.7, 5.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.9, v4.4
    • 169

    Description

      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.

      Attachments

        Activity

          People

            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: