MongoShake icon indicating copy to clipboard operation
MongoShake copied to clipboard

在全量同步的过程中被写入集群有的时候会挂,然后MongoShake会直接报"end of file"(貌似是,没保留日志),连接错误的提示

Open twink7e opened this issue 5 years ago • 1 comments

原因:目的MongoDB挂了,端口还没起来。MongoDBShake连接不上目的端口,程序直接退出,之前跑的全量都白跑了。

能不能在doc_executor.go的doSync函数(177行)处,捕获下"end of file"关键字,然后Refresh下Session。做下重试操作,或者是source和dest两边都做重试操作?

twink7e avatar Jan 24 '21 05:01 twink7e

我就不提Pr了,我自己临时改下代码,先凑合用下。感谢大佬的工具~!

twink7e avatar Jan 24 '21 05:01 twink7e