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

Test command waitForMemberState should be interruptible

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Replication 2021-11-29

    Description

      We currently use the replication coordinator method waitForReplState only in the test command waitForReplState. It appears the library calling this uses assert_soon, thus it tolerates interrupts, but in fact this method is not interruptible. Since it's called with an opCtx active, that means it can block anything which requires opCtxs to be killed; currently the only example is storage change on initial sync.

      We should make it take an Interruptible or OperationContext.

      Attachments

        Activity

          People

            matthew.russotto@mongodb.com Matthew Russotto
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: