-
Type: Bug
-
Resolution: Duplicate
-
Priority: Unknown
-
None
-
Affects Version/s: 1.5.3
-
Component/s: Options & Configuration
-
None
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://") }
- 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