Ruby driver ReplSet connection does not force map reduce to run on master

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • 12_01_17
    • Affects Version/s: 1.4.1
    • Component/s: None
    • Environment:
      AWS Linux, Mongo 2.0.1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When trying to do a map_reduce call against a replica set, I get the following error
      Database command 'mapreduce' failed: (errmsg: 'not master'; ok: '0.0').

      Ruby call looks like this
      other = {:query => query, :finalize => finalize, :out =>

      {'merge' => 'TagList'}

      , :raw => true}
      list.map_reduce(map, reduce, other)

      Replica set contains 3 nodes.

      The driver shoul ddetermine that I am going to do a write in this map_reduce and then use only the master node.

              Assignee:
              Kyle Banker (Inactive)
              Reporter:
              Matt Brown
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: