Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-521

Allow custom service names with srvServiceName URI option

    • Needed
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4086 Fixed 1.21.0
      CSHARP-3745 Done 2.25.0
      CXX-2312 Backlog
      GODRIVER-2086 Done 1.8.0
      JAVA-4239 Fixed 4.5.0
      NODE-3450 Fixed 4.2.0
      PHPC-1900 Fixed 1.13.0
      PYTHON-2823 Fixed 4.0
      RUBY-2737 Fixed 2.18.0
      RUST-911 In Code Review
      SWIFT-1263 Fixed 1.3.0
      MOTOR-778 Duplicate
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-4086 Fixed 1.21.0 CSHARP-3745 Done 2.25.0 CXX-2312 Backlog GODRIVER-2086 Done 1.8.0 JAVA-4239 Fixed 4.5.0 NODE-3450 Fixed 4.2.0 PHPC-1900 Fixed 1.13.0 PYTHON-2823 Fixed 4.0 RUBY-2737 Fixed 2.18.0 RUST-911 In Code Review SWIFT-1263 Fixed 1.3.0 MOTOR-778 Duplicate

      We are using DCOS (marathon/mesos) to manage our services. DCOS generates SRV records for our mongos instances under a record that looks like

      _mongos-mongodb._tcp.marathon.mesos
      

      However, there's currently no way for me to use this because when I provide a connection url like

      mongodb+srv://_mongos-mongodb._tcp.marathon.mesos
      

      the drivers prepend "mongodb._tcp" to the provided url. It's not clear why it's required that the host _must start with "_mongodb._tcp". Why not let the user specify the actual DNS entry to query?

      I believe the same issue will exist for multiple orchestration frameworks such as Consul/Nomad and Kubernetes.

      Drivers should sync their URI options and seedlist discovery spec tests to this commit. Drivers should accept a new URI option srvServiceName that overrides the default "mongodb" service name for SRV lookup in both discovery and polling.

            Assignee:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Reporter:
            herbrandson Eric Herbrandson
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: