myPort() shell helper does not respect replicaset strings

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Sara Golemon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: