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

RestartCatalog command should take RSTL lock in X mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.11
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-04-22, Storage NYC 2019-05-06
    • 11

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: