Skip to content

lightning: risk of OOM #40400

@buchuitoudegou

Description

@buchuitoudegou

reproduce

  1. create a csv file with unclosed quote till end:
1,2,3,"xxxxx...
  1. insert 10GB random bytes into the data file
  2. import

result

9a0e5a85-6d7d-4e2f-a8d3-ed4b08fb6c8e

If user wants to import a big file with unclosed quote, lightning might possibly be OOM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-5.4This bug affects the 5.4.x(LTS) versions.affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.component/lightningThis issue is related to Lightning of TiDB.severity/moderatetype/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