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 failed after injection ddl owner network partition #58827

Open
Lily2025 opened this issue Jan 9, 2025 · 5 comments
Open

import into failed after injection ddl owner network partition #58827

Lily2025 opened this issue Jan 9, 2025 · 5 comments
Assignees
Labels
component/ddl This issue is related to DDL of TiDB. severity/major type/bug The issue is confirmed as a bug.

Comments

@Lily2025
Copy link

Lily2025 commented Jan 9, 2025

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、import into
2、injection ddl owner network partition
3、import into failed

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

import into succeed

3. What did you see instead (Required)

import into failed

[2025-01-08 18:13:02] ###### start import into
[2025/01/08 18:14:01.469 +08:00] injection ddl owner network partition lasts for 3mins
[2025/01/08 18:17:01.471 +08:00] recover fault
[2025-01-08 18:18:02] import into failed

task-id=120007

tidb-0.log.zip
tidb-1.log.zip

4. What is your TiDB version? (Required)

./tidb-server -V
Release Version: v9.0.0-alpha-65-gd1ed962
Edition: Community
Git Commit Hash: d1ed962
Git Branch: HEAD
UTC Build Time: 2025-01-08 06:04:38
GoVersion: go1.23.4
Race Enabled: false
Check Table Before Drop: false
Store: unistore
2025-01-08T18:12:54.336+0800

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Jan 9, 2025
@Lily2025
Copy link
Author

Lily2025 commented Jan 9, 2025

/severity major
/assign lance6716
/remove-type bug

@ti-chi-bot ti-chi-bot bot added severity/major and removed type/bug The issue is confirmed as a bug. labels Jan 9, 2025
@Lily2025
Copy link
Author

Lily2025 commented Jan 9, 2025

/type bug

@ti-chi-bot ti-chi-bot bot added the type/bug The issue is confirmed as a bug. label Jan 9, 2025
@lance6716 lance6716 removed their assignment Jan 9, 2025
@lance6716
Copy link
Contributor

caused by DXF framework canceled the subtask

[2025/01/08 18:17:09.906 +08:00] [INFO] [task_executor.go:143] ["subtask is scheduled away, cancel running"] [task-id=120007] [task-type=ImportInto] [subtaskID=150067]

@Lily2025
Copy link
Author

Lily2025 commented Jan 9, 2025

/assign cbcwestwolf

@jebter jebter added the component/ddl This issue is related to DDL of TiDB. label Jan 10, 2025
@D3Hunter
Copy link
Contributor

introduced by #58615
the pr introduced subtask context, but if subtaskCtx is cancelled due to subtask scheduled away, our markSubTaskCanceledOrFailed is still using step context to check whether the subtask is cancelled or we want to cancel the running of the subtask

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ddl This issue is related to DDL of TiDB. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

5 participants