[SERVER-50407] Alias isMaster in mongotmock and attach appropriate response field Created: 20/Aug/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.8.0, 4.4.2

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Repl 2020-09-21
Participants:

 Description   

We will apply the same aliasing functionality used for the mongod and mongos isMaster commands in SERVER-49986 to MongotMockIsMaster in the enterprise repository. They implement isMaster for mongotmock.

mongotmock is just a test mock used to test queries talking to mongot (i.e. Atlas Search) and is not used externally.

Similarly to the mongod and mongos isMaster commands, we will decide to return an “isWritablePrimary” response field instead of an “ismaster” response field if we’re running the “hello” command.



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

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-50407 Alias isMaster in mongotmock and attach appropriate response field

(cherry picked from commit 344b36a80d1de828a0f1ab15481a4070deeb48b3)
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/b08f3a8f0833cd87ac7722b2da1d8db1625a5550

Comment by Githook User [ 15/Sep/20 ]

Author:

{'name': 'huayu-ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-50407 Fix spelling of isWritablePrimary field in mongotmock
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/9d29ae96d143500a76fd443df33898b9d6fb6f47

Comment by Githook User [ 15/Sep/20 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-50407 Alias isMaster in mongotmock and attach appropriate response field
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/344b36a80d1de828a0f1ab15481a4070deeb48b3

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