Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ddl: fix can't cancel a job when add index meets panic #8621
What problem does this PR solve?
Before this PR, if TiDB panic in backfillIndexInTxn, we can't cancel the ddl job, because the handleBackfillTask check cancels state after the panic, and panic will be caught by recover(), and never know the job is canceled.