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

blocking for replication returns success with no replication configured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.5.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      ubuntu 10.04.1, x86-64
    • Operating System:
      ALL

      Description

      > db.printReplicationInfo()
      {
      "errmsg" : "local.oplog.$main, or its options, not found in system.namespaces collection (not --master?)"
      }

      > db.printSlaveReplicationInfo()
      local.sources is empty; is this db a --slave?

      > coll.insert({})
      > db.runCommand(

      { getlasterror: 1, w: 2, wtimeout: 3000 }

      )

      { "err" : null, "n" : 0, "ok" : 1 }

      The above should fail--it could not possibly have replicated to two servers since there is only one.

        Attachments

          Activity

            People

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            nick@leippe.com Nick Leippe
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: