Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-355

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

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

      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:
            kbanker Kyle Banker
            Reporter:
            mbrown@igodigital.com Matt Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: