[GODRIVER-441] Connection Handshake should not call buildInfo Created: 31/May/18  Updated: 28/Oct/23  Resolved: 12/Jun/18

Status: Closed
Project: Go Driver
Component/s: Server Discovery and Monitoring
Affects Version/s: 0.0.6
Fix Version/s: 0.0.7

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Roland Fong
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes GODRIVER-433 MaxStalenessSupported sporadically fa... Closed

 Description   

The monitoring connections and default connection handshake should no longer call buildInfo. The only required information from the buildInfo is the version, which we should replace with wireVersion from isMaster.

Update the command.Handshake type to no longer call buildInfo nor getLastError.

Update the max staleness feature to use wireVersion instead of the server version.

Remove the buildInfo related information from description.Server and remove result.BuildInfo as a parameter to description.NewServer.

 



 Comments   
Comment by Roland Fong [ 12/Jun/18 ]

https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/414473

Comment by Githook User [ 12/Jun/18 ]

Author:

{'username': 'rfblue2', 'name': 'Roland Fong', 'email': 'rfblue2@gmail.com'}

Message: Remove buildinfo from connection handshake

GODRIVER-441

Change-Id: I56f01cc62e5eff13bcaa1cda9a1c922ea2632f6d
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/2909a4fa4fc2d90f2ce6788ad833621583cb5588

Comment by Githook User [ 12/Jun/18 ]

Author:

{'username': 'rfblue2', 'name': 'Roland Fong', 'email': 'rfblue2@gmail.com'}

Message: Remove buildinfo from connection handshake

GODRIVER-441

Change-Id: I56f01cc62e5eff13bcaa1cda9a1c922ea2632f6d
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/2909a4fa4fc2d90f2ce6788ad833621583cb5588

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