memory management issue for large transaction #52084
Labels
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tiup bench tpch --sf=1 prepare --db test
then use dumpling to export lineitem table in sql format. So we generates around 6M insert statements
login to tidb:
create database test1;
create table lineitem like test.lineitem;
set autocommit=off;
source lineitem.sql
2. What did you expect to see? (Required)
These are just 6M simple insert statements, it should be completed without issue.
3. What did you see instead (Required)
ERROR 1105 (HY000): Out Of Memory Quota![conn_id=7590317993653961157]
This issue is not about tidb_mem_quota_query. The memory required to run simple insert statements should not accumulate over the number of rows. This same insert script can run on mysql db without any issue.
4. What is your TiDB version? (Required)
Release Version: v6.5.3
Edition: Community
Git Commit Hash: 71e6696
Git Branch: heads/refs/tags/v6.5.3
UTC Build Time: 2023-06-12 13:52:32
GoVersion: go1.19.9
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
The text was updated successfully, but these errors were encountered: