getLastError returns hosts replicated to in incorrect format

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.4.0-rc1
    • Affects Version/s: 2.3.2
    • Component/s: Replication
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      After creating a replica set with config where hosts are specified by name:port getLastError replicatedTo field lists only ip addresses and no ports.

      rs.conf()
      ...
      members: [
      ...
      {
      "_id":1,
      "host": "asyasmacbook.local:31001",
      etc.

      rs.status()
      ...
      members: [
      ...
      "name": "asyasmacbook.local:31001",
      etc.

      getlasterror returns:
      ...
      "replicatedTo" : [
      "127.0.0.1",
      "127.0.0.1"
      ], etc.

      Since people may be running multiple servers on the same machine port name seems absolutely necessary. I'm not not sure why hostname isn't returned in the same form it's displayed in config and status but it seems potentially confusing.

            Assignee:
            Kristina Chodorow (Inactive)
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: