Details
Description
Performing 'SlaveOK' reads against an SCCC config server fails with the following error:
mongos> use config;
|
switched to db config
|
mongos> db.getMongo().setReadPref('secondaryPreferred')
|
mongos> db.chunks.count()
|
2017-02-03T14:26:42.603-0500 E QUERY [thread1] Error: count failed: {
|
"code" : 6,
|
"ok" : 0,
|
"errmsg" : "all servers down/unreachable when querying: kaloianmdesktop:20002,kaloianmdesktop:20003,kaloianmdesktop:20004"
|
} :
|
_getErrorWithCode@src/mongo/shell/utils.js:25:13
|
DBQuery.prototype.count@src/mongo/shell/query.js:383:11
|
DBCollection.prototype.count@src/mongo/shell/collection.js:1700:12
|
@(shell):1:1
|
The reason is explained in this comment.
These are the errors which show up in the log:
2017-01-31T07:28:40.004+0000 I NETWORK [conn4] query on admin.$cmd: { query: "1", help: 1 } failed to: in.dbcfg1.mydomain.com:27019 (10.0.97.139) exception: "query" had the wrong type. Expected Object, found String
|
2017-01-31T07:28:40.004+0000 I NETWORK [conn4] query on admin.$cmd: { query: "1", help: 1 } failed to: in.dbcfg2.mydomain.com:27019 (10.0.97.140) exception: "query" had the wrong type. Expected Object, found String
|
2017-01-31T07:28:40.004+0000 I NETWORK [conn4] query on admin.$cmd: { query: "1", help: 1 } failed to: in.dbcfg3.mydomain.com:27019 (10.0.97.141) exception: "query" had the wrong type. Expected Object, found String
|
2017-01-31T07:28:40.004+0000 W NETWORK [conn4] db exception when initializing on config, current connection state is { state: { conn: "SyncClusterConnection [in.dbcfg1.mydomain.com:27019 (10.0.97.139),in.dbcfg2.mydomain.com:27019 (10.0.97.140),in.dbcfg3.mydomain.com:27019 (10.0.97.141)]", vinfo: "config:in.dbcfg1.mydomain.com:27019,in.dbcfg2.mydomain.com:27019,in.dbcfg3.mydomain.com:27019", cursor: "(empty)", count: 0, done: false }, retryNext: false, init: false, finish: false, errored: false } :: caused by :: 6 all servers down/unreachable when querying: in.dbcfg1.mydomain.com:27019,in.dbcfg2.mydomain.com:27019,in.dbcfg3.mydomain.com:27019
|
Attachments
Issue Links
- is related to
-
SERVER-25445 Write command explain on mirror config servers triggers assertion failure
-
- Closed
-