Skip to content

[Bug] Limit Insert ORDER BY ... LIMIT 5000000 hangs after 17c161a3 #28285

Description

@Ariznawlll

结论

在 3-CN TKE big-data 环境中,Limit Insert 场景出现稳定超时;二分定位首个异常 commit 为 17c161a(fix(mergetop): handle large LIMIT safely (#27999))。

复现步骤

  1. 使用 3-CN MatrixOne 集群,准备 100M 行基础表。
  2. 执行:
    insert into big_data_test.insert_into_table_limit select * from big_data_test.table_basic_for_load_100M order by col4 limit 5000000;
  3. 观察执行时间和客户端返回结果。

对比结果

  • Good commit 0db2d5ea9a39d281914275fa83108029fe30bfba:PASS,约 306 秒。
  • First bad 17c161a31b47a22e71ca222839143f66717ac365:900 秒超时(15 分钟),未完成。
  • 后续 20b43edbf2ddd1667ca0492c806a950b748d9e6b:同样 900 秒超时。

影响

大数据场景下带 ORDER BY + LIMIT 的 INSERT ... SELECT 可能长时间无法完成,超过回归测试允许时限。

相关验证

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions