Make internal clients identify themselves in the isMaster handshake

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.4.0-rc2
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Query 2016-10-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It will be helpful for a mongod to be able to distinguish connections from a mongos/mongod of a particular version from connections from applications. This identifying information could be helpful in order to ensure correctness when a cluster is running in a mixed-version configuration (i.e. during an upgrade or downgrade).

      When mongos or mongod initialize an outgoing connection, they should include an internalClient field in the isMaster command. This field has the following format:

      internalClient: {
          minWireVersion: <int>,
          maxWireVersion: <int>
      }
      

      In this way, the client communicates both that it is also a node in the cluster as well as the range of wire protocols which it supports.

              Assignee:
              David Storch
              Reporter:
              David Storch
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: