我正在运行Ubuntu 20.04.1 LTS,最近将我的MongoDb服务器从4.2.3版本升级到4.4.14。现在我收到很多关于连接中止的错误消息。它们是这样的:
{
"t": {"$date": "2022-06-01T00:00:00.000+00:00"},
"s": "I",
"c": "NETWORK",
"id": 22989,
"ctx": "conn33041",
"msg": "Error sending response to client. Ending connection from remote",
"attr": {
"error": {
"code": 6,
"codeName": "HostUnreachable",
"errmsg": "Connection reset by peer"
},
"remote": "a.b.c.d:p",
"connectionId": 33041
}
}
我不明白这些消息是从哪里来的。这是代码中的实际错误吗?如果有:我如何定位和修复它?我正在访问MongoDb通过NodeJs驱动程序。
由于这些消息之前没有记录,消息是否不正确/误导?如果是,我能不能抑制它?
编辑:下面是来自同一连接的两条消息(我使用的是最近的一条,这就是为什么id不匹配。但它们看起来都一样):
{
"t": { "$date": "2022-06-07T15:25:02.030+02:00" },
"s": "I",
"c": "NETWORK",
"id": 51800,
"ctx": "conn82426",
"msg": "client metadata",
"attr": {
"remote": "a.b.c.d:p",
"client": "conn82426",
"doc": {
"driver": {
"name": "nodejs",
"version": "4.6.0"
},
"os": {
"type": "Linux",
"name": "linux",
"architecture": "x64",
"version": "5.4.0-48-generic"
},
"platform": "Node.js v14.19.2, LE (unified)|Node.js v14.19.2, LE (unified)"
}
}
}
{
"t": { "$date": "2022-06-07T15:25:22.585+02:00" },
"s": "I",
"c": "-",
"id": 20883,
"ctx": "conn82426",
"msg": "Interrupted operation as its client disconnected",
"attr": { "opId": 7476646 }
}
我在我的PSA集群中也看到了这些日志消息,在我升级到4.4.16(从4.2.22,在那里我从未见过它们)并一直持续到5.0.14之后。我使用java驱动4.3。
我相信这与:https://jira.mongodb.org/browse/SERVER-60647
我希望我有更多的信息或解决方案