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

getLastError returns hosts replicated to in incorrect format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4.0-rc1
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kristina Kristina Chodorow
              Reporter:
              asya Asya Kamsky
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: