0
1条评论

分片测试,1 删除两个分片,正常。2 再加入刚刚删除的分片不能正常加入,删除对应db下数据后重启再加入,正常。3 查询数据报错

Error: error: {
“ok” : 0,
“errmsg” : “Encountered non-retryable error during query :: caused by :: Cannot accept sharding commands if sharding state has not been initialized with a shardIdentity document”,
“code” : 203,
“codeName” : “ShardingStateNotInitialized”,
“operationTime” : Timestamp(1586512662, 1),
“$clusterTime” : {
“clusterTime” : Timestamp(1586512662, 1),
“signature” : {
“hash” : BinData(0,”yiE5Vfio2tpSC5TYx0RLVm4g4hw=”),
“keyId” : NumberLong(“6813980419856269343”)
}
}
}

请问有谁遇到过这这样的问题,如何解决

已回答的问题

什么版本?