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

TaskExecutor RemoteCommandCallbackArgs should include elapsedMS and metadata

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.11
    • None
    • Networking
    • None
    • Major Change
    • Repl 14 (05/13/16), Platforms 16 (06/24/16), Platforms 17 (07/15/16), Platforms 18 (08/05/16)

    Description

      Currently TaskExecutor::RemoteCommandCallbackArgs::RemoteCommandCallbackArgs contains a response that is a StatusWith<RemoteCommandResponse> where you can only get the elapsed time on success, not the error cases.

      We should always return the time, even on failures.
      We should also return the metadata where we have it available (as in the case of command failures)

      This is needed for retries and other operations done by the callers of scheduleRemoteCommand.

      Attachments

        Activity

          People

            waley.chen Waley Chen
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: