-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.2
-
Component/s: None
-
(copied to CRM)
-
Empty show more show less
Starting from v3.6.2 - when creating index i'm getting the below error. (For v3.5.11 works ok.)
Connection: atlas cluster
Params: readPreference=nearest&auto_reconnect=true&connectTimeoutMS=60000&retryWrites=true&w=majority
Meanwhile fixes with patch:
dbHandle.collection(collectionName, { readPreference: ReadPreference.PRIMARY }).createIndex(keys, options);
Reported error:
error: MongoError: not master at MessageStream.messageHandler (mongodb/lib/cmap/connection.js:268:20) at MessageStream.emit (events.js:315:20) at processIncomingData (mongodb/lib/cmap/message_stream.js:144:12) at MessageStream._write (mongodb/lib/cmap/message_stream.js:42:5) at doWrite (_stream_writable.js:403:12) at writeOrBuffer (_stream_writable.js:387:5) at MessageStream.Writable.write (_stream_writable.js:318:11) at TLSSocket.ondata (_stream_readable.js:717:22) at TLSSocket.emit (events.js:315:20) at addChunk (_stream_readable.js:295:12) { operationTime: [Timestamp], ok: 0, code: 10107, codeName: 'NotMaster', '$clusterTime': [Object], [Symbol(errorLabels)]: [Set] }
- duplicates
-
NODE-2784 MongoError: Not Master when running createIndex in 3.6.0
- Closed