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

Integrate CancelationTokens with the AsyncRequestsSender

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch

    Description

      Right now the AsyncRequestsSender has a stopRetrying method that sets a boolean flag which prevents requests from retrying, but it does not cancel outstanding network requests. We should change it to use cancellation tokens, which would allow us to cancel in flight requests and return sooner. As part of this we should update this call to scheduleRemoteCommand to use the newer future-returning version of that API that takes a cancellation token.

      I'm creating this ticket as a prerequisite for SERVER-50342 (create a generic async runCommand), since doing the "modernization" of the ARS and refactoring it into a reusable function seemed like too much to do in one go.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: