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

optimize rpc::readRequestMetadata

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc1
    • Component/s: Internal Code, Networking
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Epic Link:
    • Sprint:
      Platform B (10/30/15)

      Description

      rpc::readRequestMetadata currently has some inefficiencies, such as scanning the same BSON object 3 times and allocating ErrorInfos on the empty-metadata path. As this is hot code (on the command path) it should be optimized.

      As part of this work, the format of ServerSelectionMetadata on the wire will change. Instead of having $readPreference and $secondaryOk be top-level fields of the metadata object, they will be sub-objects of a top-level $ssm object. As such this work needs to get in to rc1, given that we need to support rolling upgrade from rc1 to rc2 (but not rc0 to rc1).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adam.midvidy Adam Midvidy
              Reporter:
              adam.midvidy Adam Midvidy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: