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

Make cancelCommand integration tests wait for the command to acquire a connection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2020-02-24

    Description

      The current implementation of CancelRemotely and CancelRemotelyTimedOut expects the command being cancelled to have already acquired a connection by the time cancelCommand starts. This is not always true, and when cancelCommand is run before the command has acquired a connection, cancelCommand immediately fulfills the promise with CallbackCancelled, which causes the checks in the these tests to fail. These tests should wait for the command to acquire a connection before calling cancelCommand (e.g. using a failpoint).

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: