增量迁移失败报错,关键词“Timed out after 60000 ms while waiting for a server that matches com.mongodb.client.internal”
场景描述
MongoDB->DDS实时迁移场景,增量迁移报错,日志提示信息:service INCREMENT failed, cause by: [reason]:Failed to connect to database due to network, check the network between the DRS and the database or try again later.[message]:Timed out after 60000 ms while waiting for a server that matches com.mongodb.client.internal.MongoClientDelegate$1@27105e1a. Client view of cluster state is {type=REPLICA_SET, servers=[{address=***, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection timed out (Connection timed out)}}, {address=***, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.NoRouteToHostExceptio。
可能原因
- 网络不稳定导致写入目标库时建立连接超时。
- 目标库系统繁忙导致建立连接超时。
处理方法
- 检查目标库运行状态是否正常。
- 检查DRS迁移实例和目标库之间的网络是否存在丢包、重传等情况。
- 联系华为工程师调整默认的超时时间。