[COMPASS-7612] Investigate changes in SERVER-84776: Add `service: router` or Similar Flag to ServerStatus Output When Run Against Embedded Router Created: 31/Jan/24  Updated: 07/Feb/24  Resolved: 07/Feb/24

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Investigation Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-84776 Add `service: router` or Similar Flag... Closed
Assigned Teams:
Developer Tools
Documentation Changes: Not Needed

 Description   
Original Downstream Change Summary

Added a new field `service` for serverStatus.

With PM-635, shards will be able to act as routers, and it is not enough to inform that the process is 'mongod' by serverStatus.process. In order to add extra information on the role that the mongod is acting at that moment, we have added a new field called `service`.

Now serverStatus returns

{ process: mongod, service: router|shard, ...}

running it directly to the mongod, or

{ process: mongos, service: router, ...}

running it through the mongos.

Description of Linked Ticket

As of build 7.3.0-alpha0-81-g99853e7 (which corresponds to git hash 99853e7a9c71d793b5b3c5028e322bf0215d2697), running db.serverStatus() against an embedded router returns process: 'mongod'. While this is technically correct, it'd be helpful to have a flag somewhat along the lines of service: 'router' or something similar to signify that this command was run against a router and not against the mongod directly.



 Comments   
Comment by Jessica Sigafoos [ 07/Feb/24 ]

No action required from the DevTools team

Comment by PM Bot [ 31/Jan/24 ]

Fix Version updated for upstream SERVER-84776:
8.0.0-rc0

Generated at Wed Feb 07 22:47:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.