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

TaskExecutor RemoteCommandCallbackArgs should include elapsedMS and metadata

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

      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.

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

              Created:
              Updated:
              Resolved: