schema change task failed

【详述】问题详细描述
create index …

alter table … add index …
执行任务之后都被cancelled了,查看be.WARNNING日志
【背景】做过哪些操作?
【业务影响】
【StarRocks版本】例如:2.1.11
【集群规模】例如:1fe+3be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡,例如:48C/64G/万兆
【附件】
be.warnning日志:

W0810 18:29:31.445407 231802 beta_rowset_writer.cpp:224] Fail to delete file=/.../data/38/41287/1685220272/020000000017a3544a4289498450d11170b6596e5dd238bb_0.dat, Not found: /.../data/38/41287/1685220272/020000000017a3544a4289498450d11170b6596e5dd238bb_0.dat: No such file or directory
W0810 18:29:31.446200 231802 engine_alter_tablet_task.cpp:54] failed to do alter task. status=Internal error: process failed base_tablet_id=40693, base_schema_hash=136597795, new_tablet_id=41287, new_schema_hash=1685220272
W0810 18:29:31.446218 231802 task_worker_pool.cpp:514] alter failed. signature: 41287

原因找到了,是超过内存限制,失败了

W0810 18:32:39.882201 231805 schema_change.cpp:834] fail to execute schema change: Memory of schema change task exceed limit. DirectSchemaChange Used: 2148108760, Limit: 2147483648. You can change the limit by modify BE config [memory_limitation_per_thread_for_schema_change]

您好
这个报错是由于单次schema change使用的内存超过了默认的内存限制2G引起的,该默认值是由以下be参数控制的。

td {white-space:pre-wrap;border:1px solid #dee0e3;}

memory_limitation_per_thread_for_schema_change 2 单个 schema change 任务允许占用的最大内存

需要在be.conf中修改该默认值,并重启be后生效,然后重试该任务。
请在业务显时操作。