TxnLockNotFound 错误解决心路历程
发生原因
使用ETL工具同步到TIDB时候出现了如下错误:
PreparedStatementCallback; uncategorized SQLException for SQL [replace into billing_record 这里就是一个SQL** SQL state [HY000]; error code [1105]; Error: KV error safe to retry tikv restarts txn: Txn(Mvcc(TxnLockNotFound { start_ts: 418225222021808131, commit_ts: 418225224367996934, key: [116, 128, 0, 0, 0, 0, 0, 15, 75, 95, 105, 128, 0, 0, 0, 0, 0, 0, 1, 1, 50, 99, 57, 55, 55, 56, 101, 50, 255, 55, 51, 55, 52, 48, 98, 102, 49, 255, 48, 49, 55, 51, 55, 53, 54, 55, 255, 101, 56, 56, 52, 48, 48, 54, 57, 255, 0, 0, 0, 0, 0, 0, 0, 0, 247] }))
问题解决 官方社区给给出答疑:https://asktug.com/t/topic/1815/4