You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2022/03/17 00:37:25.075 +08:00] [INFO] [2pc.go:1251] ["2PC clean up done"] [conn=88491651] [txnStartTS=431868777377300483]
[2022/03/17 00:37:25.124 +08:00] [INFO] [server.go:388] ["new connection"] [conn=88500664] [remoteAddr=172.16.10.18:52170]
[2022/03/17 00:37:25.127 +08:00] [INFO] [set.go:207] ["set session var"] [conn=88500664] [name=character_set_results] [val=NULL]
[2022/03/17 00:37:25.130 +08:00] [INFO] [session.go:2130] ["CRUCIAL OPERATION"] [conn=88500664] [schemaVersion=38920] [cur_db=pre_report] [sql="truncate table dim_str_info"] [[email protected]]
[2022/03/17 00:37:25.140 +08:00] [INFO] [ddl_worker.go:261] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:49566, Type:truncate table, State:none, SchemaState:none, SchemaID:39165, TableID:49536, RowCount:0, ArgLen:1, start time: 2022-03-17 00:37:25.12 +0800 CST, Err:<nil>, ErrCount:0, SnapshotVersion:0; "]
[2022/03/17 00:37:25.140 +08:00] [INFO] [ddl.go:477] ["[ddl] start DDL job"] [job="ID:49566, Type:truncate table, State:none, SchemaState:none, SchemaID:39165, TableID:49536, RowCount:0, ArgLen:1, start time: 2022-03-17 00:37:25.12 +0800 CST, Err:<nil>, ErrCount:0, SnapshotVersion:0"] [query="truncate table dim_str_info"]
[2022/03/17 00:37:25.149 +08:00] [INFO] [server.go:391] ["connection closed"] [conn=88500228]
[2022/03/17 00:37:25.161 +08:00] [INFO] [server.go:391] ["connection closed"] [conn=88500232]
[2022/03/17 00:37:25.175 +08:00] [INFO] [domain.go:127] ["diff load InfoSchema success"] [usedSchemaVersion=38920] [neededSchemaVersion=38921] ["start time"=2.308932ms] [tblIDs="[49536,49565]"]
[2022/03/17 00:37:25.176 +08:00] [INFO] [schema_validator.go:246] ["the schema validator enqueue, queue is too long"] ["delta max count"=1024] ["remove schema version"=37291]
[2022/03/17 00:37:25.245 +08:00] [WARN] [session.go:471] ["can not retry txn"] [conn=88491651] [label=general] [error="[kv:1062]Duplicate entry '2729399744124944900-2729399742690492929-1' for key 'ORDER_LINE'"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=false] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=false]
[2022/03/17 00:37:25.245 +08:00] [WARN] [session.go:487] ["commit failed"] [conn=88491651] ["finished txn"="Txn{state=invalid}"] [error="[kv:1062]Duplicate entry '2729399744124944900-2729399742690492929-1' for key 'ORDER_LINE'"]
[2022/03/17 00:37:25.245 +08:00] [ERROR] [conn.go:730] ["command dispatched failed"] [conn=88491651] [connInfo="id:88491651, addr:10.0.4.48:61461 status:0, collation:utf8_general_ci, user:dev_grid"] [command=Query] [status="inTxn:0, autocommit:0"] [sql=commit] [txn_mode=OPTIMISTIC] [err="previous statement: insert into clerk_bonus_his (ID, CLERK_CODE, BONUS_DATE, BONUS, CREATED_NAME, CREATED_DATE, UPDATED_NAME, UPDATED_DATE, IS_EFFECTIVE, BONUS_YEAR, BONUS_MONTH, BONUS_DAY, PRODUCT_CODE, COLOR, `SIZE`, `COUNT`, SALES_AMOUNT, CLERK_BONUS_ID, BONUS_AMOUNT, ORDER_TYPE, ORDER_CODE, MEMBER_CODE, MEMBER_NAME, REMARK, `TYPE`,store_code,ORDER_LINE,PERSONAL_AMOUNT,SHARE_POINT_AMOUNT,SHARE_VOUCHER_AMOUNT,PAY_AMOUNT,BILL_TYPE, VIRTUAL_PRODUCT_CODE,VIRTUAL_PRODUCT_NAME,CARD_TYPE,BRAND_CODE,SALE_STORE ) values (null, '99999902', '2021-02-09 00:00:00.0', 0.00, null, '2022-03-17 00:37:24.815', null, '2022-03-17 00:37:24.815', null, '2021', '02', '09', null, null, null, 1, 538.00, null, null, '门店订单', '2729399742690492929', '', null, null, '0','9999','2729399744124944900' ,0.01,0.00 ,0.00,0.01, 1 ,null ,null,null ,'DD' ,'9999' ): [kv:1062]Duplicate entry '2729399744124944900-2729399742690492929-1' for key 'ORDER_LINE'"]
[2022/03/17 00:37:25.247 +08:00] [INFO] [2pc.go:1251] ["2PC clean up done"] [conn=88495071] [txnStartTS=431868777416622096]
[2022/03/17 00:37:25.257 +08:00] [INFO] [domain.go:127] ["diff load InfoSchema success"] [usedSchemaVersion=38921] [neededSchemaVersion=38922] ["start time"=2.565882ms] [tblIDs="[49534,49567]"]
[2022/03/17 00:37:25.259 +08:00] [INFO] [schema_validator.go:246] ["the schema validator enqueue, queue is too long"] ["delta max count"=1024] ["remove schema version"=37292]
[2022/03/17 00:37:25.292 +08:00] [INFO] [schema_validator.go:205] ["the related physical table ID is empty"] [schemaVer=38920] [latestSchemaVer=38922]
[2022/03/17 00:37:25.292 +08:00] [WARN] [session.go:471] ["can not retry txn"] [conn=88495821] [label=general] [error="[domain:8028]Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]"] [IsBatchInsert=false] [IsPessimistic=true] [InRestrictedSQL=false] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=false]
[2022/03/17 00:37:25.292 +08:00] [WARN] [session.go:487] ["commit failed"] [conn=88495821] ["finished txn"="Txn{state=invalid}"] [error="[domain:8028]Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]"]
[2022/03/17 00:37:25.292 +08:00] [WARN] [session.go:1041] ["run statement failed"] [conn=88495821] [schemaVersion=38920] [error="previous statement: select * from xxl_job_lock where lock_name = 'schedule_lock' for update: [domain:8028]Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]"] [session="{\n \"currDBName\": \"uat_xxljob\",\n \"id\": 88495821,\n \"status\": 0,\n \"strictMode\": true,\n \"user\": {\n \"Username\": \"uat_job\",\n \"Hostname\": \"172.16.13.242\",\n \"CurrentUser\": false,\n \"AuthUsername\": \"uat_job\",\n \"AuthHostname\": \"172.16.13.%\"\n }\n}"]
【两个tidb-server都已开启binlog】
【drainer配置】
# WARNING: This file is auto-generated. Do not edit! All your modification will be overwritten!
# You can use 'tiup cluster edit-config' and 'tiup cluster reload' to update the configuration
# All configuration items you want to change can be added to:
# server_configs:
# drainer:
# aa.b1.c3: value
# aa.b2.c4: value
[syncer]
db-type = "kafka"
ignore-schemas = "INFORMATION_SCHEMA,METRICS_SCHEMA,PERFORMANCE_SCHEMA,aaa,aliprod119,bak_marketing_0925,dusto_job,goinception,mysql,stress_testing,test,test33,test55,thisaliprod,thisisuat,tidb_loader,txmanager,uat_databank,uat_goods,uat_grid,uat_info,uat_integration,uat_job,uat_marketing,uat_member,uat_message,uat_nacos,uat_order,uat_pay,uat_product,uat_report,uat_saga,uat_security,uat_stock,uat_support,uat_zipkin,pre_databank,pre_info,pre_job,pre_message,pre_nacos,pre_nacos113,pre_product,pre_report,pre_security,pre_support,dev_member,dev_databank,dev_message,dev_info,dev_order,dev_pay,dev_marketing,dev_report,dev_stock,dev_grid,dev_support,dev_security,dev_goods"
[[syncer.ignore-table]]
db-name = "test"
tbl-name = "test"
[[syncer.ignore-table]]
db-name = "pre_member"
tbl-name = "member_info_temp_20190925"
[syncer.to]
kafka-addrs = "kafka01:9092,kafka02:9092,kafka03:9092"
kafka-max-message-size = 1610612736
kafka-max-messages = 1536
kafka-version = "1.0.2"
topic-name = "tidb-binlog-pre"
【 TiDB 使用环境】
生产环境
【概述】 场景 + 问题概述
未做配置调整,突然开始频繁报错退出
【备份和数据迁移策略逻辑】
pump – drainer – kafka
【背景】 做过哪些操作
无运维操作(不排除有数据库脏数据因素)
【现象】 业务和数据库现象
同步中断
【问题】 当前遇到的问题
已经异常退出多次,报错是not found table id,但是根据table id有时找不到表,有时找能到表
pump未发现ERROR级报错
drainer 重启即可恢复
【业务影响】
影响数据同步
【TiDB 版本】
v4.0.4
【drainer日志】
【2022/03/17 00:37:27 左右tidb-server的相关日志】
tidb-server01: (根据table id 49567 搜索)
tidb-server02: (根据table id 49567 搜索)
【两个tidb-server都已开启binlog】
【drainer配置】
【已确定目前报错的table id,能查到的都是在过滤条件中的】
有些表根据id已经查不到了,所以我无法证实
现在我开始担心后面会不会出现 ignore-error 触发 critical error的情况,按照教程中说法要重新同步整个数据,我们的数据量巨大,这是难以承受的
The text was updated successfully, but these errors were encountered: