[CDRIVER-3528] An ismaster reply containing "msg" is considered a mongos regardless of the value Created: 09/Feb/20 Updated: 28/Oct/23 Resolved: 12/Feb/20 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | 1.17.0-beta, 1.17.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
A slight deviation from the SDAM spec, but in parsing an ismaster reply, libmongoc always considers the existence of the field "msg" to indicate the server is a mongos. But the SDAM spec is explicit in that the value should be "isdbgrid". I don't believe there is any current bug that could surface from this, as I'm not aware of servers ever reporting "msg" with another value. But it could foreseeably change (e.g. as suggested in SERVER-3353). |
| Comments |
| Comment by Githook User [ 12/Feb/20 ] |
|
Author: {'username': 'kevinAlbs', 'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com'}Message: SDAM mandates that a server is considered mongos if msg is set in the |