[SERVER-30917] mongodb3.2 version can't count metedate out correct Created: 01/Sep/17  Updated: 09/Oct/17  Resolved: 07/Sep/17

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

Type: Bug Priority: Major - P3
Reporter: hancang2000 Assignee: Mark Agarunov
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-22485 ShardNotFound error when looking up r... Closed
Operating System: ALL
Participants:

 Description   

connecting to: 127.0.0.1:20487/admin
Server has startup warnings: 
2017-08-30T17:39:26.199+0800 I CONTROL  [main] ** WARNING: You are running this process as the root user, which is not recommended.
2017-08-30T17:39:26.199+0800 I CONTROL  [main] 
mongos> db.system.users.count()
2017-09-01T10:39:48.392+0800 E QUERY    [thread1] Error: count failed: {
        "code" : 70,
        "ok" : 0,
        "errmsg" : "Shard not found for server: config465/10.200.4.150:27019,10.200.5.150:27019,10.200.6.150:27019"
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DBQuery.prototype.count@src/mongo/shell/query.js:370:11
DBCollection.prototype.count@src/mongo/shell/collection.js:1713:12
@(shell):1:1
 
mongos> db.runCommand( { serverStatus: 1 } )['sharding']['configsvrConnectionString']
config465/10.200.6.150:27019,10.200.5.150:27019,10.200.4.150:27019



 Comments   
Comment by Mark Agarunov [ 07/Sep/17 ]

Hello zhouhancang,

Thank you for the report. Looking over the output you've provided, this appears to be caused by the same issue as SERVER-22485 where the order of the connection string must match the stored connection string, in this case, config465/10.200.6.150:27019,10.200.5.150:27019,10.200.4.150:27019. As this behavior is due to the same underlying cause as SERVER-22485, I've closed this ticket as a duplicate. Please follow SERVER-22485 for updates on this issue.

Thanks,
Mark

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