[SERVER-30042] could not get updated shard list from config server due to Operation timed out Created: 07/Jul/17  Updated: 10/Jul/17  Resolved: 10/Jul/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: hu dai Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

mongos> sh.status()
2017-07-07T17:40:06.805+0800 E QUERY [thread1] Error: error:

{ "code" : 50, "ok" : 0, "errmsg" : "Operation timed out" }

:
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DBCommandCursor@src/mongo/shell/query.js:689:1
DBQuery.prototype._exec@src/mongo/shell/query.js:118:28
DBQuery.prototype.hasNext@src/mongo/shell/query.js:276:5
DBCollection.prototype.findOne@src/mongo/shell/collection.js:289:10
printShardingStatus@src/mongo/shell/utils_sh.js:544:19
sh.status@src/mongo/shell/utils_sh.js:78:5
@(shell):1:1

mongos>
mongos> sh.status(true)
— Sharding Status —
sharding version:

{ "_id" : 1, "minCompatibleVersion" : 5, "currentVersion" : 6, "clusterId" : ObjectId("595f4f3a44e9eba1f01ce493") }

shards:

{ "_id" : "message2", "host" : "message2/192.168.1.144:27017,192.168.1.145:27017,192.168.1.146:27017" } { "_id" : "message3", "host" : "message3/192.168.1.147:27017,192.168.1.148:27017,192.168.1.149:27017" }

active mongoses:

{ "_id" : "ws-mongo-1-152.youyuan-idc.com:27017", "ping" : ISODate("2017-07-07T09:49:23.177Z"), "up" : NumberLong(2322), "waiting" : false, "mongoVersion" : "3.2.13" } { "_id" : "pb-mongo-1-151.youyuan-idc.com:27017", "ping" : ISODate("2017-07-07T09:49:22.830Z"), "up" : NumberLong(2321), "waiting" : false, "mongoVersion" : "3.2.13" } { "_id" : "pb-mongo-1-150.youyuan-idc.com:27017", "ping" : ISODate("2017-07-07T09:49:09.984Z"), "up" : NumberLong(2308), "waiting" : false, "mongoVersion" : "3.2.13" }

balancer:
Currently enabled: yes
Currently running: no
Failed balancer rounds in last 5 attempts: 5
Last reported error: could not get updated shard list from config server due to Operation timed out
Time of Reported error: Fri Jul 07 2017 17:48:32 GMT+0800 (CST)
Migration Results for the last 24 hours:
No recent migrations
databases:

{ "_id" : "msg", "primary" : "message2", "partitioned" : false }

mongos>



 Comments   
Comment by Kelsey Schubert [ 10/Jul/17 ]

Hi daihuxyz@gmail.com,

Thanks for your report. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.

Kind regards,
Thomas

Comment by hu dai [ 07/Jul/17 ]

mongos> sh.enableSharding("dd")

{ "ok" : 0, "errmsg" : "Operation timed out", "code" : 50 }

mongos>

Generated at Thu Feb 08 04:22:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.