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

Fix race with async getHosts request and concurrent topology change

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.1, 4.7.0
    • Component/s: None
    • Labels:
      None

      Description

      See the steps in "Steps To Reproduce" below.

      A fix for this is to invoke server selection at the time of step 4 with a fresh view of the topology while synchronizing with the TopologyManager.

      The topology views (and corresponding topology change events) are serialized, so at step 4 we would either see T0 or T and would block any future topology changes while R is being enqueued.

      In the first case (we see T0), server selection would return no result, the request would be enqueued, and the query will be satisfied after T is applied to the topology manager.

      In the second case (we see T), the query will be satisfied without enqueuing the request.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cheahuychou.mao Cheahuychou Mao
              Reporter:
              lamont.nelson Lamont Nelson
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: