Skip to content

[Bug]: load data 导入数据失败 #26992

Done

Description

@volgariver6

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

4.1.4

Commit ID

4.1.4

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

一个表 load data 总是失败

cn 的配置如下

Image

报错包括

Image 这个是 oom 导致的 Image 这次没有 oom,但是报了 lost connection Image 最后一次报了lock wait timeout,可能是上次没有清理完全导致的

测试文件

Image

Expected Behavior

数据能够成功导入

Steps to Reproduce

用样例数据中的表结构和数据可以复现,执行 load data 语句

Additional information

No response

Activity

  1. added
    kind/bug
    on Aug 12, 2026
  2. VioletQwQ-0 commented on Aug 13, 2026

    @VioletQwQ-0
    Collaborator

    The core failure reported in this issue has been reproduced on MatrixOne 4.1.4.

    Reproduction location

    • Host: mo-50
    • Run directory: /data/issue-26992-real/real-376362-r2-20260812T101514Z/lifecycle-v2
    • Evidence directory: /data/issue-26992-real/real-376362-r2-20260812T101514Z/lifecycle-v2/evidence
    • Container: issue26992-real-376362-r2-lifecycle-v2

    Runner:

    • Version: issue26992-r2-anli-v7-oom-observe
    • SHA-256: ffaadc7a52487f3a02adb39e20e44674dc7725b2122e79af9f4514bd90ac3957

    Environment

    • MatrixOne: 4.1.4
    • CPU limit: 10 cores
    • Memory limit: 30000 MiB
    • GOMEMLIMIT=6400MiB
    • Memory cache: 12000 MiB
    • Disk cache: 135 GiB
    • Dataset: am_comprehensive_dataset, 376,362 rows
    • CSV size: 15,641,767,534 bytes
    • CSV SHA-256: 4173dcd0cc358f81a22bb856b7a2ed006cf3869ef9bc83b9c7333b6ca494bf77

    Reproduction method

    LOAD DATA LOCAL INFILE was executed while mixed ANLI vector and full-text queries were running against four prepared ANLI tables.

    The concurrent ANLI workload was used to accelerate memory pressure. It confirms the reported terminal failure, but does not yet prove that the original LOAD-only case has the same internal allocation path.

    Timeline:

    • 09:51:17 UTC: ANLI queries started
    • 09:51:28 UTC: vector/full-text queries became ready and LOAD started
    • 09:51:52 UTC: memory crossed 24 GiB
    • 09:51:56 UTC: memory crossed 27 GiB
    • 09:52:18 UTC: the MatrixOne container was OOM-killed

    Result

    • Docker OOMKilled=true
    • Container exit code: 137
    • LOAD exit code: 1
    • Client error: ERROR 2013 / Lost connection to MySQL server during query
    • Maximum observed memory.current: 31,457,280,000 bytes
    • Maximum observed memory.peak: 31,457,771,520 bytes
    • The host still had approximately 18.45 GiB available memory

    This reproduces the issue's core OOM + lost-connection failure.

    Evidence

    Terminal evidence:

    • evidence/final_summary.json
    • evidence/container_inspect_final.json
    • evidence/monitor.tsv
    • evidence/load.stderr
    • evidence/load.exit_code
    • evidence/query.stdout
    • evidence/query.exit_code

    Profiles captured at 24 GiB:

    • evidence/threshold24.heap
    • evidence/threshold24.metrics
    • evidence/threshold24.goroutine
    • evidence/threshold24.processlist

    Profiles captured at 27 GiB:

    • evidence/threshold27.heap
    • evidence/threshold27.metrics
    • evidence/threshold27.goroutine
    • evidence/threshold27.processlist
  3. removed their assignment
    on Aug 21, 2026
  4. VioletQwQ-0 commented on Aug 21, 2026

    @VioletQwQ-0
    Collaborator
  5. aptend commented on Aug 21, 2026

    @aptend
    Contributor

    fix in 4.3

  6. added
    severity/s0
    and removed on Aug 25, 2026
  7. MatrixAdventurer commented on Oct 29, 2026

    @MatrixAdventurer
    Contributor

    结论:无法确认(修复仅合入 hotfix 分支,本次不计为核实通过)。修复 PR #31166(重复导入累积的 workset 改为增量释放)10-27 合入 4.1.6-hotfix:按 PR 记录,在 4GiB 服务上 12/12 场景通过,重复导入 5/5 轮(39 表/轮)无 OOM、服务峰值约 8.5GiB;对照同环境原版 4.1.6 第二轮第 24 表即 OOM;race 覆盖 9 个包,并附 JSON 准入用例。未见该回合入 main/4.3 的证据。缺:主线回合或等价修复 PR 关联与复测;完成前建议保持开启。本操作由LW授权的MOI智能体提交

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

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions