-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
recover table by job ID would cause panic #55113
Labels
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
component/ddl
This issue is related to DDL of TiDB.
impact/panic
severity/moderate
type/bug
The issue is confirmed as a bug.
Comments
ti-chi-bot
bot
added
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
labels
Aug 2, 2024
crazycs520
added
component/ddl
This issue is related to DDL of TiDB.
severity/minor
severity/moderate
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.2
affects-7.3
affects-7.4
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-7.6
affects-8.0
and removed
sig/transaction
SIG:Transaction
severity/major
severity/minor
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
labels
Oct 29, 2024
crazycs520
added
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.2
affects-8.3
affects-8.4
labels
Oct 29, 2024
Nice catch, I will fix it. This will only occur in some abnormal situations, and the panic will only affect the current query and will not cause tidb-server to panic. And the minimal reproduce step is: test> create table t (a int);
Query OK, 0 rows affected
Time: 0.085s
test> drop table t;
Query OK, 0 rows affected
Time: 0.330s
test> admin show ddl jobs 1;
+--------+---------+------------+---------------+--------------+-----------+----------+-----------+----------------------------+----------------------------+----------------------------+--------+
| JOB_ID | DB_NAME | TABLE_NAME | JOB_TYPE | SCHEMA_STATE | SCHEMA_ID | TABLE_ID | ROW_COUNT | CREATE_TIME | START_TIME | END_TIME | STATE |
+--------+---------+------------+---------------+--------------+-----------+----------+-----------+----------------------------+----------------------------+----------------------------+--------+
| 106 | test | t | drop table | none | 2 | 104 | 0 | 2024-10-29 19:48:08.829000 | 2024-10-29 19:48:08.879000 | 2024-10-29 19:48:09.180000 | synced |
+--------+---------+------------+---------------+--------------+-----------+----------+-----------+----------------------------+----------------------------+----------------------------+--------+
1 row in set
Time: 0.009s
test> recover table by job 106;
Query OK, 0 rows affected
Time: 0.224s
test> recover table by job 106;
(1105, 'runtime error: invalid memory address or nil pointer dereference') |
13 tasks
13 tasks
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
component/ddl
This issue is related to DDL of TiDB.
impact/panic
severity/moderate
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
ErrTableExists uses s.Table, but it's nil in
recover table by job ID
.2. What did you expect to see? (Required)
N/A
3. What did you see instead (Required)
N/A
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: