Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import into jobs is always running after kill ddl owner #46735

Closed
Lily2025 opened this issue Sep 7, 2023 · 2 comments · Fixed by #47300
Closed

import into jobs is always running after kill ddl owner #46735

Lily2025 opened this issue Sep 7, 2023 · 2 comments · Fixed by #47300
Assignees
Labels
affects-7.4 component/disttask distributed execute framework of tidb feature/developing the related feature is in development needs-cherry-pick-release-7.4 severity/major type/bug The issue is confirmed as a bug.

Comments

@Lily2025
Copy link

Lily2025 commented Sep 7, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、tidb_enable_dist_task='on'
2、import into user_data1 from 's3://brie/mvindex-10000000-csv/test.user_data1.*.csv?access-key=minioadmin&secret-access-key=minioadmin&endpoint=http://minio.pingcap.net:9001&force-path-style=true' WITH skip_rows=1
3、after 2mins,kill ddl owner

2. What did you expect to see? (Required)

import into task can finish

3. What did you see instead (Required)

import into jobs is always running
mysql> select * from mysql.tidb_import_jobs where start_time >= '2023-09-06 17:20:09';
+--------+----------------------------+----------------------------+----------------------------+----------+--------------+------------+----------+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+---------+-----------+---------+---------------+
| id | create_time | start_time | update_time | end_time | table_schema | table_name | table_id | created_by | parameters | source_file_size | status | step | summary | error_message |
+--------+----------------------------+----------------------------+----------------------------+----------+--------------+------------+----------+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+---------+-----------+---------+---------------+
| 270002 | 2023-09-06 17:20:10.690458 | 2023-09-06 17:20:11.245575 | 2023-09-06 17:20:11.245575 | NULL | importtest | user_data1 | 539 | root@% | {"file-location":"s3://brie/mvindex-10000000-csv/test.user_data1.*.csv?access-key=xxxxxx\u0026endpoint=http%3A%2F%2Fminio.pingcap.net%3A9001\u0026force-path-style=true\u0026secret-access-key=xxxxxx","format":"csv","options":{"skip_rows":"1"}} | 1995557384 | running | importing | NULL | NULL |
+--------+----------------------------+----------------------------+----------------------------+----------+--------------+------------+----------+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+---------+-----------+---------+---------------+
1 row in set (0.01 sec)

4. What is your TiDB version? (Required)

./tidb-server -V
Release Version: v7.4.0-alpha
Edition: Community
Git Commit Hash: 66fe053
Git Branch: heads/refs/tags/v7.4.0-alpha
UTC Build Time: 2023-09-05 11:43:48
GoVersion: go1.21.0
Race Enabled: false
Check Table Before Drop: false
Store: unistore

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Sep 7, 2023
@Lily2025
Copy link
Author

Lily2025 commented Sep 7, 2023

/assign D3Hunter

@D3Hunter
Copy link
Contributor

D3Hunter commented Sep 7, 2023

currently, scheduler don't handle node fail. it's expect to be failed directly.

@seiya-annie seiya-annie added feature/developing the related feature is in development component/ddl This issue is related to DDL of TiDB. severity/major labels Sep 7, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Sep 7, 2023
@D3Hunter D3Hunter removed may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Sep 13, 2023
@D3Hunter D3Hunter added component/disttask distributed execute framework of tidb and removed component/ddl This issue is related to DDL of TiDB. labels Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.4 component/disttask distributed execute framework of tidb feature/developing the related feature is in development needs-cherry-pick-release-7.4 severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants