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

getLastError returns hosts replicated to in incorrect format

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

      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 Kristina Chodorow (Inactive)
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: