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

Sharding host targeting logic should use the remaining time from the OperationContext as a timeout

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Service Arch 2019-02-11

      Currently RemoteCommandTargeter::selectFindHostMaxWaitTime() will always return a default timeout:

      https://github.com/mongodb/mongo/blob/master/src/mongo/client/remote_command_targeter.cpp#L48-L49

      This is the timeout which we use when targeting a particular host within a shard. Instead of using a default, we should attach a timeout to the OperationContext (potentially the maxTimeMS value) and use this as the host targeting timeout.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: