mongo查询抛出异常,什么原因
答案:2 悬赏:30 手机版
解决时间 2021-03-22 06:26
- 提问者网友:疯子也有疯子的情调
- 2021-03-21 20:23
mongo查询抛出异常,什么原因
最佳答案
- 五星知识达人网友:你哪知我潦倒为你
- 2021-03-21 20:47
OperationFailure: could not find host matching read preference { mode: "primary", tags: [ {} ] } for set rs1
请确认下rs1这个副本集当前的primary是否正常
请确认下rs1这个副本集当前的primary是否正常
全部回答
- 1楼网友:洒脱疯子
- 2021-03-21 21:36
primary
All read operations use only the current replica set primary. [5] This is the default read mode. If the primary is unavailable, read operations produce an error or throw an exception.
看样子的确是这样. primary 服务器不可用。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯