RestartCatalog command should take RSTL lock in X mode

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
            Reporter:
            Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: