findAndModify & dropIndex queries don't use primary server with replicaset

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 2.0.34
    • Affects Version/s: 2.0.27
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi,
      On a node project that use a replicaset, when I call findAndModify or dropIndex methods, there is often an error "not master" because requests are executed on a secondary.
      I think these kind of method should always use primary (et least for writing part).
      To bypass that, I need to add readPreference primary on all call to these functions, and it's not very cool
      Thanks.

              Assignee:
              Christian Amor Kvalheim
              Reporter:
              Julien Maurel
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: