Details
-
Bug
-
Resolution: Duplicate
-
Unknown
-
None
-
1.5.3
-
None
Description
It seems that SRV polling is not spawned when using `opts.ApplyURI()` without (deprecated) deployment options.
That's because options.MergeClientOptions doesn't copy "uri" field. Then topology.New gets options with empty uri value, and polling is disabled.
if t.cfg.uri != "" {
|
t.pollingRequired = strings.HasPrefix(t.cfg.uri, "mongodb+srv://")
|
}
|
Attachments
Issue Links
- duplicates
-
GODRIVER-2056 SRV polling is not spawned because options.MergeClientOptions doesn't handle uri properly
-
- Closed
-
- related to
-
GODRIVER-1507 SRV polling not performed if the URI is not passed to the topology
-
- Closed
-