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

    XMLWordPrintable

    Details

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

      Description

      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://")
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              isabella.siu Isabella Siu (Inactive)
              Reporter:
              harebox@gmail.com Hoonmin Kim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: