[SERVER-26420] Make internal clients identify themselves in the isMaster handshake Created: 30/Sep/16  Updated: 31/Oct/16  Resolved: 24/Oct/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.4.0-rc2

Type: Improvement Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2016-10-31
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 24/Oct/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-26420 fix shell to not send internalClient info in isMaster
Branch: master
https://github.com/mongodb/mongo/commit/9af567fdd5b5bf58e76209fc375502c8ee08b08d

Comment by David Storch [ 20/Oct/16 ]

Re-opening, since I discovered that the mongo shell is currently including internalClient information.

Comment by Githook User [ 20/Oct/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-26420 add internalClient information to isMaster handshake request
Branch: master
https://github.com/mongodb/mongo/commit/81ea77ca8305f6a8783ba29e1a93cafa6be81a50

Generated at Thu Feb 08 04:12:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.