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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 1.5.4
    • Affects Version/s: 1.5.3
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It seems that SRV polling is not working when using `opts.ApplyURI()` without deprecated deployment options. This made us to restart the application when updating Route53 DNS SRV.

      I've found that `pollSRVRecords` is not running because URI is not passed to topology configuration.

      So `options.MergeClientOptions` must copy URI like errors to correctly determine the polling requirement.

      if t.cfg.uri != "" {
         t.pollingRequired = strings.HasPrefix(t.cfg.uri, "mongodb+srv://")
      }
      

            Assignee:
            Isabella Siu (Inactive)
            Reporter:
            Hoonmin Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: