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

collMod interruption may cause invariant failure

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.5, 4.0.0
    • Affects Version/s: None
    • Component/s: Catalog, Storage
    • None
    • Fully Compatible
    • ALL
    • v3.6
    • Storage NYC 2018-05-07
    • 45

      At https://github.com/mongodb/mongo/blob/68005e0ffcc50c9260a162b717aaa5c2225096da/src/mongo/db/catalog/coll_mod.cpp#L445
      we register an onRollback handler that calls refreshUUID to undo an update to the cached UUID value of the Collection object. However, this requires a storage read, which is not allowed during rollback.

      Instead, the Collection::refreshUUID method should register its own rollback handler.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: