[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: |
|
||||
| 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 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: (cherry picked from commit 344b36a80d1de828a0f1ab15481a4070deeb48b3) |
| Comment by Githook User [ 15/Sep/20 ] |
|
Author: {'name': 'huayu-ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}Message: |
| Comment by Githook User [ 15/Sep/20 ] |
|
Author: {'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}Message: |