为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:4.0 DM 1.0.6
- 【问题描述】:task任务莫名暂停,请帮忙看看为何会提示无效连接。谢谢。
query-status 结果
“Message”: “flush checkpoint (mysql-bin|000001.003372, 212976727)(flushed (mysql-bin|000001.003372, 212976727)): execute statement failed: begin: invalid connection”,
“RawCause”: “invalid connection”
task状态
dm-worker日志
[2020/07/29 03:20:42.831 +08:00] [INFO] [subtask.go:266] [“unit process returned”] [subtask=client_building_visited] [unit=Sync] [stage=Paused] [status=“{"totalEvents":6674748,"totalTps":3530,"recentTps":514,"masterBinlog":"(mysql-bin.003372, 156496925)","masterBinlogGtid":"56b5a383-aa4f-11ea-a59e-fa2c42ff9900:1-1324259,56fd8730-aa4f-11ea-a7c1-fa3283cd2000:1","syncerBinlog":"(mysql-bin|000001.003361, 145357969)"}”]
[2020/07/29 03:20:42.831 +08:00] [ERROR] [subtask.go:285] [“unit process error”] [subtask=client_building_visited] [unit=Sync] [“error information”=“{"msg":"current pos (mysql-bin|000001.003361, 208344628): flush checkpoint (mysql-bin|000001.003361, 145357969)(flushed (mysql-bin|000001.003361, 145357969)): execute statement failed: begin: invalid connection","error":{"ErrCode":10006,"ErrClass":1,"ErrLevel":3,"Message":"current pos (mysql-bin|000001.003361, 208344628): flush checkpoint (mysql-bin|000001.003361, 145357969)(flushed (mysql-bin|000001.003361, 145357969)): execute statement failed: begin: invalid connection","RawCause":"invalid connection"}}”]
[2020/07/29 03:20:42.840 +08:00] [WARN] [db.go:285] [“execute transaction”] [task=client_building_relation] [unit=“binlog replication”] [query=“[UPDATE hdb_broker
.client_building_relation
SET r_build_id
= ?, id
= ?, broker_id
= ?, client_id
= ?, building_id
= ?, client_status
= ?, client_status_old
= ?, is_locked
= ?, locked_at
= ?, unlocked_at
= ?, is_visited
= ?, is_signed
= ?, protect_time
= ?, protect_time_old
= ?, creater
= ?, create_time
= ?, create_time_old
= ?, remark
= ?, city_id
= ?, is_remind
= ?, mingyuan_status
= ?, exhibition_room_id
= ?, client_building_id
= ?, visite_company
= ?, visite_company_id
= ?, visite_place
= ?, visite_place_id
= ?, client_name
= ?, is_id_card
= ?, client_id_card
= ?, activate_sign
= ?, activate_sign_old
= ?, bespeak_time
= ?, source_id
= ?, recommend_source
= ?, platform
= ?, health_intention
= ?, employee_mark
= ?, is_black
= ?, org_id
= ?, org_name
= ?, user_type
= ?, parent_user_type
= ?, update_time
= ?, update_time_old
= ?, is_special
= ?, owner_flag
= ?, is_h5_delete
= ?, client_phone
= ?, is_tuoke
= …”] [argument=“[[12765639 d2d8d5eb7edd432e98e958 ec941b0b9764450581cf0dd7d9 0f57f58b2a5d2ba0762f f692a285bb2a495dfdea -20 -20 1 1 1 2020-06-25 2020-06-25 付 2020-05-26 17:23:36 2020-05-26 17:23:36 李 1 08569x 常规通道 0 其他 员工 2020-07-29 02:12:34 0 0 15285538917 0 0 0 0 1276390991506579459 1276366996690313225 0 2020-06-26 00:42:42 58.16.228.1 d2d8d5eb7edd432e98e9562291e744f8] [127656451502 edcbc0eb69884 4160e67a16724d8e9667530a7085a9a5 605f3dded62a3932e28ff8f29f 4cbfe40729d8c201f2aa01356c6 -60 -60 1 1 1 2020-01-19 2020-01-19 罗 2019-12-19 09:48:37 2019-12-19 09:48:37 成雯 1 134976 >常\ufffd\ufffd…”] [“cost time”=1.622802032s]