-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongo-shake-v2.4.7同步mongo集群数据到kafka刷屏报错 #430
Comments
开DEBUG日志打印看一下,看起来读入的oplog是空,但实际上不应该会有空的Oplog。 |
[2020/08/28 17:15:15 CST] [EROR] KafkaWriter json marshal data[json: unsupported value: NaN] error[json: unsupported value: NaN] |
遇到了相同的报错,mongoshake-2.4.10 ,错误日志: [2020/09/03 08:06:59 UTC] [WARN] Collector-worker-3 transfer oplogs failed with reply value -1 |
像是 go 的 json 库解析 NaN -Inf 这样的特殊 value 报错了。 |
比较奇怪的是,和这个 mongo-shake source 一样的另外的 mongo-shake 使用 direct 模式却没有报错,mongo-shake 的版本都是 2.4.10 |
@vinllen 请问这个问题有进展么? |
目前还没有解决,同步mongo是没有问题的,kafka就不行 |
最近我投入人力定位一下,你们方便发下报错时间点的oplog吗?根据checkpoint可以看到同步的时间点,然后这个时间点之后的oplog拉出来看下 |
@dx8439 @dongkun-nb 方便的话钉钉联系我一下,我给个版本试一下。钉钉id:e6ccxf0 |
这个问题是因为用户的某些字段是NaN,inf,-inf,导致json序列化没办法识别,这些不是json的规范。此外,这些不应该在mongodb的字段中出现,一旦出现,通常是源端本身写入就有问题了。 |
MongoShake针对修改方式:一旦发现NaN,Inf和-Inf,将会报错Error,当前oplog不会推送kafka,但是程序不会block,仍然会继续往下走 |
2.4.15版本已发布 |
这个问题在2.4.15已经解决了吗? |
mongo-shake-v2.4.7同步mongo集群数据到kafka刷屏报错,并且kafka有消息堆积。mongo-shake日志如下:
[2020/08/27 15:06:37 CST] [INFO] Collector-worker-2 transfer retransmit:false send [1] logs. reply_acked [-1[-1, 4294967295]], list_unack [0]
[2020/08/27 15:06:37 CST] [WARN] Collector-worker-2 transfer oplogs failed with reply value -1
[2020/08/27 15:06:37 CST] [EROR] KafkaWriter json marshal data[json: unsupported value: NaN] error[json: unsupported value: NaN]
[2020/08/27 15:06:37 CST] [INFO] Collector-worker-2 transfer retransmit:false send [1] logs. reply_acked [-1[-1, 4294967295]], list_unack [0]
[2020/08/27 15:06:37 CST] [WARN] Collector-worker-2 transfer oplogs failed with reply value -1
[2020/08/27 15:06:37 CST] [EROR] KafkaWriter json marshal data[json: unsupported value: NaN] error[json: unsupported value: NaN]
[2020/08/27 15:06:37 CST] [INFO] Collector-worker-2 transfer retransmit:false send [1] logs. reply_acked [-1[-1, 4294967295]], list_unack [0]
[2020/08/27 15:06:37 CST] [WARN] Collector-worker-2 transfer oplogs failed with reply value -1
[2020/08/27 15:06:37 CST] [EROR] KafkaWriter json marshal data[json: unsupported value: NaN] error[json: unsupported value: NaN
The text was updated successfully, but these errors were encountered: