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

Test command waitForMemberState should be interruptible

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Replication 2021-11-29

      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.

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

              Created:
              Updated:
              Resolved: