Interruption During Dumpling Process

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: dumpling过程中中断

| username: TiDB_C罗

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] *Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot

The export command is as follows:
tiup dumpling -u root -P 4000 -h xxx -p ‘xxx’ --filetype sql -o /data/tidb_export -F 100MiB -t 1 -T --params “tidb_distsql_scan_concurrency=1,tidb_mem_quota_query=209715200” --consistency=auto
Export was interrupted:
dump failed: invalid connection; sql: START TRANSACTION: sql: connection is already closed; dial tcp xxx:4000: connect: connection refused

| username: tidb菜鸟一只 | Original post link

Check if the corresponding TiDB has restarted due to an OOM (Out of Memory) issue.

| username: TiDB_C罗 | Original post link

It is indeed an OOM issue. I will investigate the cause of the OOM.

| username: TiDB_C罗 | Original post link

When running dumpling, the memory usage remains smooth but suddenly spikes, causing TiDB to be OOM.



The corresponding traffic also has a corresponding spike.
What is this spike related to?

| username: ShawnYan | Original post link

You can check these two documents to control the memory usage during import:

| username: tidb菜鸟一只 | Original post link

Refer to this part, you can check the TiDB logs to see if the OOM is caused by exporting large tables.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.