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

Fix synchronization issues around using `blockBatonASIOBeforePoll` in `transport_test`

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Service Arch 2022-03-07, Service Arch 2022-03-21
    • 44
    • 1

      This should address the following:

      • Tests that rely on blockBatonASIOBeforePoll should query FailPointEnableBlock ::initialTimesEntered() before blocking on the fail-point.
      • The main test thread should ensure the fail-point is enabled before running any blocking code that would trigger poll().

      This should ensure the following sequence:
      The fail-point is enabled.
      The main thread then enters blocking code, internally running poll().
      The thread setting the fail-point can then use FailPoint::waitForTimesEntered() to wait for the main test thread to block on the fail-point.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: