[GODRIVER-701] ReadPreference on client is not respected Created: 13/Dec/18 Updated: 28/Oct/23 Resolved: 19/Dec/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Options & Configuration |
| Affects Version/s: | None |
| Fix Version/s: | 0.2.0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Aaron Szymanski | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
ReadPreferences is only respected when included in the connection string. When configured programmatically, it's ignored.
|
| Comments |
| Comment by Githook User [ 19/Dec/18 ] | |||
|
Author: {'username': 'skriptble', 'email': 'kris@mongodb.com', 'name': 'Kris Brandow'}Message: Ensure readpref and concerns can be set on client Change-Id: Idc5ccf42ac398c1f883c346f2d6744a45a661573 | |||
| Comment by Kristofer Brandow (Inactive) [ 18/Dec/18 ] | |||
|
Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/437718/. | |||
| Comment by Aaron Szymanski [ 14/Dec/18 ] | |||
|
Actually it looks like it is ignoring all options not in the connection string. I just tried setting:
and it is also ignored. | |||
| Comment by Aaron Szymanski [ 13/Dec/18 ] | |||
|
Forgot to set my version on this ticket... should be v0.1.0. |