[SERVER-3419] Explain object should include server address in mongos or slave_ok Created: 12/Jul/11  Updated: 12/Jul/16  Resolved: 02/Nov/11

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Tony Hannan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Add the server address (name:port) to the results



 Comments   
Comment by auto [ 02/Nov/11 ]

Author:

{u'login': u'TonyGen', u'name': u'Tony Hannan', u'email': u'tony@10gen.com'}

Message: SERVER-3419: use getHostNamedCached instead of getHostName
Branch: master
https://github.com/mongodb/mongo/commit/6c994c3fc98d55c7184cb11559fabd76c4250c94

Comment by auto [ 02/Nov/11 ]

Author:

{u'login': u'TonyGen', u'name': u'Tony Hannan', u'email': u'tony@10gen.com'}

Message: SERVER-3419: use getHostNamedCached instead of getHostName
Branch: master
https://github.com/mongodb/mongo/commit/6c994c3fc98d55c7184cb11559fabd76c4250c94

Comment by Eliot Horowitz (Inactive) [ 02/Nov/11 ]

needs to use getHostNameCached

Comment by auto [ 02/Nov/11 ]

Author:

{u'login': u'TonyGen', u'name': u'Tony Hannan', u'email': u'tony@10gen.com'}

Message: SERVER-3419: Explain now includes server that processed the request
Branch: master
https://github.com/mongodb/mongo/commit/19b3476f6ae88ac580d3da944a95c9d5e99874a6

Comment by auto [ 02/Nov/11 ]

Author:

{u'login': u'TonyGen', u'name': u'Tony Hannan', u'email': u'tony@10gen.com'}

Message: SERVER-3419: Explain now includes server that processed the request
Branch: master
https://github.com/mongodb/mongo/commit/19b3476f6ae88ac580d3da944a95c9d5e99874a6

Comment by Scott Hernandez (Inactive) [ 19/Oct/11 ]

In the case of mongos it should be a list, like if it hits more than one server. Maybe something like this:

servers: [

{address:"server:port", shard:"<name>"}

, ...]

It might make sense to split address into host/port fields.

For consistency even with a replica set it might make sense to use "servers" rather than the singular so drivers/clients don't have to use more logic.

Generated at Thu Feb 08 03:03:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.