Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-680

Create index returns "not master"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 2.1.10
    • Affects Version/s: 2.1.7
    • Component/s: MongoDB 3.2
    • Environment:
      All

      Hi there,
      The createIndex function in replicaSet returns "not master" error.
      You can find as attachments a simple snippet of js code to reproduce the issue. In the example I used the secondary readPreference to make always return the error, if it changes to primary it works and with the other preferences it has a random behaviour.

        1. bug.js
          0.9 kB

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            mongo@stamplay.com Mongo Stamplay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: