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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.5.4
    • Affects Version/s: 1.5.3
    • 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@mongodb.com Isabella Siu (Inactive)
            Reporter:
            harebox@gmail.com Hoonmin Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: