如果我在mongos中运行sh.status,就会得到错误:
assert: command failed: {
"ok" : 0,
"errmsg" : "error processing query: ns=config.mongosTree: ping $gt new Date(1532712420740)\nSort: {}\nProj: {}\n No query solutions",
"code" : 2
} : aggregate failed
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:16:14
assert.commandWorked@src/mongo/shell/assert.js:290:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
printShardingStatus@src/mongo/shell/utils_sh.js:611:13
sh.status@src/mongo/shell/utils_sh.js:78:5
@(shell):1:1
2018-07-27T11:28:05.644-0600 E QUERY [thread1] Error: command failed: {
"ok" : 0,
"errmsg" : "error processing query: ns=config.mongosTree: ping $gt new Date(1532712420740)\nSort: {}\nProj: {}\n No query solutions",
"code" : 2
} : aggregate failed :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:16:14
assert.commandWorked@src/mongo/shell/assert.js:290:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
printShardingStatus@src/mongo/shell/utils_sh.js:611:13
sh.status@src/mongo/shell/utils_sh.js:78:5我重新安装了所有的mongo企业包,但是错误仍然存在,所有的碎片都正常工作,因为我可以从mongos执行查找。
谢谢
发布于 2018-11-22 19:18:22
我也面临着同样的问题。这是因为在我的mongo配置服务器中启用了小吃罐属性。禁用配置服务器的notablescan之后,命令就可以正常工作了。您可以通过运行此命令来检查notablescan的状态。
db.adminCommand( { getParameter: 1, notablescan: 1 } )如果启用了notablescan,输出将如下所示。
{
"notablescan": true,
"ok": 1
}https://dba.stackexchange.com/questions/213479
复制相似问题