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

scheduler might keep reporting error when task cancelled before running #48890

Closed
D3Hunter opened this issue Nov 24, 2023 · 0 comments · Fixed by #48906
Closed

scheduler might keep reporting error when task cancelled before running #48890

D3Hunter opened this issue Nov 24, 2023 · 0 comments · Fixed by #48906
Labels
affects-7.5 component/ddl This issue is related to DDL of TiDB. severity/major type/bug This issue is a bug.

Comments

@D3Hunter
Copy link
Contributor

D3Hunter commented Nov 24, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  • start a import task
  • dispatcher try move to next step, and save all subtasks into db(add subtask and update task is not in one txn, to handle the case that txn is large and we can add subtasks in batch)
  • before dispatcher update task status and step, the task is cancelled
  • dispatcher will generate revert subtasks for current step, which is stepInit
  • import into didn't have subtask executor for init step, add index too.
[onError] [task-id=1] [error="unknown step -1 for import task 1"]

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

cancelled

3. What did you see instead (Required)

scheduler keeps reporting error

4. What is your TiDB version? (Required)

master

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

Successfully merging a pull request may close this issue.

2 participants