-
Type: Bug
-
Resolution: Done
-
Priority: Blocker - P1
-
Affects Version/s: 2.1.7
-
Component/s: MongoDB 3.2
-
Environment:All
-
Empty show more show less
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.