[GODRIVER-1642] Ensure server descriptions always have an address Created: 09/Jun/20  Updated: 28/Oct/23  Resolved: 10/Jun/20

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.5

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by GODRIVER-1694 Description update missing server add... Closed

 Description   

We construct server descriptions by hand in error cases and sometimes do not include an address. My understanding is that such descriptions will be ignored by topology.apply, so this is a bug. We should add constructors to description/server.go for the relevant description types we need and make sure topology/server.go always uses them.



 Comments   
Comment by Githook User [ 10/Jun/20 ]

Author:

{'name': 'iwysiu', 'email': 'isabella.siu@10gen.com', 'username': 'iwysiu'}

Message: GODRIVER-1642 add unknown server description constructor (#417)
Branch: release/1.3
https://github.com/mongodb/mongo-go-driver/commit/a2601d24622e2fb29abeb7c4a86038ba4d8a1f1e

Comment by Githook User [ 10/Jun/20 ]

Author:

{'name': 'iwysiu', 'email': 'isabella.siu@10gen.com', 'username': 'iwysiu'}

Message: GODRIVER-1642 add unknown server description constructor (#417)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/81279aff197f6771395fca101cf58745819cbbf3

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