[SERVER-84765] Running ServerStatus Against Embedded Router Must Return Correct Port Created: 11/Jan/24  Updated: 05/Feb/24  Resolved: 05/Feb/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Ramasai Tadepalli Assignee: Pol Pinol
Resolution: Fixed Votes: 0
Labels: pm-635-milestone-3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Sprint: CAR Team 2024-02-05
Participants:

 Description   

As of build 7.3.0-alpha0-81-g99853e7 (which corresponds to git hash 99853e7a9c71d793b5b3c5028e322bf0215d2697), running db.serverStatus() against an embedded router returns the hostname/port of the actual primary/secondary process, and NOT the router. Example of running db.serverStatus() against an embedded router running on port 44000:

[direct: mongos] test> db.serverStatus()
{
  host: 'M-QKVDT236TR:44001',
  version: '7.3.0-alpha0-81-g99853e7',
  process: 'mongod', 
...

On the contrary, this is the output of db.serverStatus() running on a standard mongos process:

[direct: mongos] test> db.serverStatus()
{
  host: 'M-QKVDT236TR:54000',
  version: '7.2.0',
  process: 'mongos',
... 

This discrepancy should be fixed such that running db.serverStatus() against an embedded router returns the correct port to maintain parity with the standard router.



 Comments   
Comment by Githook User [ 05/Feb/24 ]

Author:

{'name': 'Pol Piñol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-84765 Return the correct port at host field when embedded router is enabled (#18544)

GitOrigin-RevId: d967b76285b21d970cf401139ef51e30df35073f
Branch: master
https://github.com/mongodb/mongo/commit/1b9420f93078763790c011228213e95805e9d941

Generated at Thu Feb 08 06:55:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.