Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-46430

myPort() shell helper does not respect replicaset strings

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Security 2020-03-09
    • 48

      Shell helper `myPort()` assumes a single host:port from `getMongo().host`, however this may be a replicaset string under certain CI suites.   Split the string on commas first and use the host from the first member.

      https://github.com/mongodb/mongo/blob/86e9d861dd056cdd71ff191ad032cc392bf9071a/src/mongo/shell/servers.js#L1435

       

       

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: