Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2057

SRV polling is not spawned because options.MergeClientOptions doesn't handle uri properly

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 1.5.3
    • Labels:
      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://")
      	}
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            harebox@gmail.com Hoonmin Kim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: