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

RestartCatalog command should take RSTL lock in X mode

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-04-22, Storage NYC 2019-05-06
    • 11

      RestartCatalog can be interruptible by stepdown after SERVER-40604 because ViewCatalog::reloadIfNeeded takes an interruptible collection lock. It violates our assumption that restartCatalog can not be interrupted.

      Although in production stepdown can never happen when restartCatalog gets called by rollback because rollback already takes RSTL X lock, some tests that exercise both restartCatalog command and stepdown could have this issue. So we should take RSTL X lock in restartCatalog.

            Assignee:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Reporter:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: