not master and slaveOk=false
来源:互联网 发布:北京房价下跌 知乎 编辑:程序博客网 时间:2024/06/07 15:21
在SECONDARY查询出发现如下错误:
sns:SECONDARY> show collections2017-05-04T14:48:57.162+0800 E QUERY [thread1] Error: listCollections failed: { "ok" : 0, "errmsg" : "not master and slaveOk=false", "code" : 13435 } :
这是正常的,因为SECONDARY是不允许读写的,如果非要解决,方法如下:
sns:SECONDARY> rs.slaveOk();sns:SECONDARY> show collectionssystem.userssystem.version
0 0
- not master and slaveOk=false
- MongoCursorException ***not master and slaveOk=false
- "$err" : "not master and slaveok=false", "code" : 13435
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- Master: Error: JAVA_HOME is not set and could not be found.
- Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false 错误
- 【Android】Do not requestWindow.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your th
- True And False
- 异常com.mongodb.MongoException: not talking to master and retries used up 处理办法
- Master and Skin
- HDU5900-QSC and Master
- hdu5900 QSC and Master
- QSC and Master
- HDU5900-QSC and Master
- Ruby学习笔记
- php 最简单的验证码
- java基础
- Android 开发 Tip 10 -- app:showAsAction & android:showAsAction
- dubbo 服务注册
- not master and slaveOk=false
- 2016 校园招聘求职经历(一)
- Android:控件WebView显示网页
- ViewFlipper(翻转视图)使用详解
- 手机端键盘搜索
- Sublime Text3 编辑器我的最爱
- 将C#里的枚举Enum转换为int
- jsp指令元素
- linux 下的通讯工具nc