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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: 1.5.3
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Hoonmin Kim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: