Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
副本集中存在mongodb写入问题的数据读取错误_Mongodb - Fatal编程技术网

副本集中存在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

我正在与2名成员一起开发Mongodb副本集。我已在主服务器上设置了
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
    },