[SERVER-49986] Convert isMaster command to hello and add aliases Created: 29/Jul/20  Updated: 29/Oct/23  Resolved: 15/Sep/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.7.0, 4.2.10, 4.4.2, 4.0.21, 3.6.21

Type: Task Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-50097 inaccurate exhaustIsMasterMetrics if ... Closed
Documented
Related
related to SERVER-49985 Convert mongod isMaster command to he... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0, v3.6
Sprint: Repl 2020-08-10
Participants:

 Description   

Convert the command “isMaster” to “hello.” This will involve changing the CmdIsMaster class in cluster_is_master_cmd. Since we need to preserve backwards compatibility, we will alias the “hello” command to both “isMaster” and “ismaster” using existing alias functionality in the Command class.



 Comments   
Comment by Githook User [ 16/Sep/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-49986 Convert isMaster command to hello and keep isMaster, ismaster aliases

(cherry picked from commit 9a4be902441496be7ef40e5404a91ac30dc81f77)
Branch: v3.6
https://github.com/mongodb/mongo/commit/8b8385f99237738faf06de6ee352269569ae3473

Comment by Githook User [ 15/Sep/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-49986 Convert isMaster command to hello and keep isMaster, ismaster aliases

(cherry picked from commit 9a4be902441496be7ef40e5404a91ac30dc81f77)
Branch: v4.0
https://github.com/mongodb/mongo/commit/2ed8986d87eeb9b874610365d571258bcf2c6ba0

Comment by Githook User [ 10/Sep/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-49986 Convert isMaster command to hello and keep isMaster, ismaster aliases

(cherry picked from commit 9a4be902441496be7ef40e5404a91ac30dc81f77)
Branch: v4.2
https://github.com/mongodb/mongo/commit/e67ef16a4c619c41b9d584879351886ff1147098

Comment by Githook User [ 09/Sep/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-49986 Convert isMaster command to hello and keep isMaster, ismaster aliases

(cherry picked from commit 9a4be902441496be7ef40e5404a91ac30dc81f77)
Branch: v4.4
https://github.com/mongodb/mongo/commit/2283bcea915fef023a2cf29bad76ca92d9d9b531

Comment by Githook User [ 26/Aug/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: Revert "SERVER-49986 Convert isMaster command to hello and keep isMaster, ismaster aliases"

This reverts commit 694f98a8c171701ebb3af3f2b865e9f963a9983c.
Branch: v4.4
https://github.com/mongodb/mongo/commit/95ea09d61932f51a37a63a10f4d0e0c1fced4723

Comment by Githook User [ 20/Aug/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-49986 Convert isMaster command to hello and keep isMaster, ismaster aliases

(cherry picked from commit 9a4be902441496be7ef40e5404a91ac30dc81f77)
Branch: v4.4
https://github.com/mongodb/mongo/commit/694f98a8c171701ebb3af3f2b865e9f963a9983c

Comment by Pavithra Vetriselvan [ 05/Aug/20 ]

SERVER-49985 was done as a part of this ticket to make test changes simpler.

Comment by Githook User [ 05/Aug/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-49986 Convert isMaster command to hello and keep isMaster, ismaster aliases
Branch: master
https://github.com/mongodb/mongo/commit/9a4be902441496be7ef40e5404a91ac30dc81f77

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