-
Notifications
You must be signed in to change notification settings - Fork 172
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
MySQL8.0.11向TiDBv3.0.4同步问题:item not ack #237
Comments
|
@Ryan-Git 非常感谢你的回复!
3.mysql binlog 里看看这个消息前后都在做什么 "binlog-gtid":"86d43294-987d-22e8-12af-00763e098714:1-5903819"这个位置的下一条事务,还是向这个表插入10000行左右的数据,虽然,gravity_positions记录的位置停在了:"binlog-gtid":"86d43294-987d-22e8-12af-00763e098714:1-5903819",,但是下一个事务的部分数据,已同步一部分。 4.debug/pprof/goroutine 看下堆栈 感谢您提供的解决问题的思路,以上提供的信息,不知够不够您分析,还望等您有空时,麻烦您看一下。 |
先并发开高点试一下。 [output.config.target]
max-open = 200
max-idle = 200
[scheduler]
type = "batch-table-scheduler"
[scheduler.config]
nr-worker = 200 debug/pprof/goroutine 是我想看下卡在哪里了 |
好的,非常感谢! |
最近修复了一个可能相关的问题,可以更新一下看看 #238 |
先关了,还有问题再开吧。 |
我再使用Gravity测试MySQL8.0.11向TiDBv3.0.4数据同步。使用Gravity版本为:0.9.61.
同步过程中输出如下日志:(日志中并没有输出警告,错误)
{"level":"warning","msg":"[sliding_window] item not ack after 95.908530 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:26:54+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 96.908549 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:26:55+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 97.908528 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:26:56+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 98.908548 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:26:57+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 99.908528 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:26:58+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 100.908550 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:26:59+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 101.908552 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:27:00+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 102.908539 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:27:01+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 103.908541 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:27:02+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 104.908537 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:27:03+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 105.908548 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:27:04+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 106.908536 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:27:05+08:00"}
{"level":"warning","msg":"[sliding_window] item not ack after 107.908533 seconds. core.Msg{ mysqlstream-502587 dml insert map[id:2611651] }","time":"2019-11-23T10:27:06+08:00"}
item not ack after后边的时间一直增长,同时没有数据同步到TiDB,MySQL中gravity_positions表记录的同步位置也不再跟新。
gravity的同步配置文件如下:
[root@tidb02 gravity-0.9.61]# cat toml_lh/mysql2tidb_product.toml
name = "mysql2tidb_test"
internal-db-name = "_gravity"
[input]
type = "mysql"
mode = "stream"
[input.config.source]
host = "123.123.123.123"
username = "user"
password = "password"
port = 3306
[[input.config.table-configs]]
schema = "db_test"
table = "*"
[input.config.start-position]
binlog-gtid = "123131-123131-12131-123-123131313213:1-5903819"
[[filters]]
type = "reject"
[filters.config]
match-schema = "db_test"
match-table = "BATCH_*"
#[[filters]]
#type = "reject"
#[filters.config]
#match-schema = "db_test"
#match-table = "batch_*"
[output]
type = "mysql"
[output.config.target]
host = "127.0.0.1"
username = "user"
password = "password"
port = 4000
[output.config]
enable-ddl = true
[[output.config.routes]]
match-schema = "db_test"
match-table = ""
target-schema = "db_test"
target-table = ""
#match-table = ""和target-table = ""等于"星号",提交问题后,没显示出来。
多次出现这种情况,
情况一:有时候只是同步延迟比较高,item not ack after后边的时间也会增长,但是数据还在慢慢同步,同步过批处理产生的大量数据后,所有指标趋于正常。
情况二:同步进程还在运行,但是数据不再同步,item not ack after后边的时间一直增长,MySQL中gravity_positions表记录的同步位置也不再跟新。
请多指教,非常感谢!
The text was updated successfully, but these errors were encountered: