[GODRIVER-1659] Use fsm.compatibilityErr to give better server selection errors Created: 18/Jun/20  Updated: 28/Oct/23  Resolved: 27/Jul/20

Status: Closed
Project: Go Driver
Component/s: Error Handling
Affects Version/s: None
Fix Version/s: 1.5.0

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


 Description   

fsm stores a compatibilityErr for if the server has an incompatible version. Currently, server selection doesn't give a useful error in this situation, so it should return the compatibilityErr instead. Also check the spec and see if fsm.compatible can be used to fail fast.



 Comments   
Comment by Githook User [ 27/Jul/20 ]

Author:

{'name': 'Kriti Ravindran', 'email': 'kriti.ravindran@mongodb.com', 'username': 'KritiRav'}

Message: GODRIVER-1659 fail fast during server selection if incompatible WireVersion (#461)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/a9223ce78fa5e3ab8136227b1dff9c61be782b92

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