副本集中存在mongodb写入问题的数据读取错误
我正在与2名成员一起开发Mongodb副本集。我已在主服务器上设置了副本集中存在mongodb写入问题的数据读取错误,mongodb,Mongodb,我正在与2名成员一起开发Mongodb副本集。我已在主服务器上设置了defaultWriteConcern 几天前它工作得很好,但现在它在一些聚合管道上出现了错误 错误: { "Code": 31124, "Message": "OP_GET_MORE does not support cursors with a write concern other than the default. Use the getMore comm
defaultWriteConcern
几天前它工作得很好,但现在它在一些聚合管道上出现了错误
错误:
{
"Code": 31124,
"Message": "OP_GET_MORE does not support cursors with a write concern other than the default. Use the getMore command instead. Write concern was: { w: \"majority\", wtimeout: 5000, provenance: \"customDefault\" }",
"Assertion": false
}
我对此进行了搜索,但无法理解如何解决此问题。更新您的驱动程序。@D.SM谢谢您提供的信息。但我已经设置了自定义默认写关注点。通过将其重置为默认值,问题消失了。
"defaultWriteConcern" : {
"w" : "majority",
"wtimeout" : 5000
},