文档首页/ 数据复制服务 DRS/ 故障排除/ 失败案例/ MongoDB->DDS实时迁移/ 全量迁移失败报错,关键词“Timed out after 60000 ms while waiting to connect”
更新时间:2024-11-26 GMT+08:00
分享

全量迁移失败报错,关键词“Timed out after 60000 ms while waiting to connect”

场景描述

MongoDB->DDS实时迁移场景,全量迁移报错,日志提示信息:service DATAMOVE 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]:apply event=[type=table_data, batch_index_in_shard=144, table_schema=***, table_name=***, record_num=8510] occur error, msg=Timed out after 60000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{*** type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]。

可能原因

  • 网络不稳定导致写入目标库时建立连接超时。
  • 目标库系统繁忙导致建立连接超时。

处理方法

  1. 检查目标库运行状态是否正常。
  2. 检查DRS迁移实例和目标库之间的网络是否存在丢包、重传等情况。
  3. 联系华为工程师调整默认的超时时间。

相关文档