Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: [kv:8025]entry too large, the max entry size is 6291456, the size of data is 7890542
[TiDB Version]
TiDB v6.1.0
DM v6.1.0
[Problem Encountered]
An error occurred during DM synchronization where a single key exceeded the maximum limit, as follows:
“errors”: [
{
“ErrCode”: 50000,
“ErrClass”: “not-set”,
“ErrScope”: “not-set”,
“ErrLevel”: “high”,
“Message”: “[kv:8025]entry too large, the max entry size is 6291456, the size of data is 7890542”,
“RawCause”: “”,
“Workaround”: “”
}
],
To check if it is indeed a TiDB issue, a large field was generated and inserted into TiDB:
[2022/07/04 09:15:22.423 +08:00] [INFO] [2pc.go:629] [“[BIG_TXN]”] [session=6284447824554729039] [“key sample”=748000000000000ad95f728000000000000003] [size=37119529] [keys=1] [puts=1] [dels=0] [locks=0] [checks=0] [txnStartTS=434345691549007898]
The insertion into the database was successful, and the data was also retrievable. The relevant TiDB parameters are as follows:
+------+---------------------+--------------------------------------+-----------+
| Type | Instance | Name | Value |
+------+---------------------+--------------------------------------+-----------+
| tidb | xxxxx:4000 | performance.txn-entry-size-limit | 125829120 |
| tikv | xxxxx:20161 | raftstore.raft-entry-max-size | 128MiB |
+------+---------------------+--------------------------------------+-----------+
A bug has been reported: the 'txn-entry-size-limit' config is not effective in DM · Issue #6161 · pingcap/tiflow · GitHub