Skip to content

TiDB OOM at merge sort step when using distributed framework to add index #62853

@fzzf678

Description

@fzzf678

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

tidb 8c16g
set @@global.tidb_ddl_reorg_worker_cnt = 8;
use failpoint to enable merge sort
add index on an ordered bigint column, total 8 billion rows.

2. What did you expect to see? (Required)

No OOM

3. What did you see instead (Required)

OOM at merge sort step
Image

4. What is your TiDB version? (Required)

master

Metadata

Metadata

Assignees

Labels

affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/DXFDistributed eXecute Framework of tidbcomponent/ddlThis issue is related to DDL of TiDB.severity/majortype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions