modify column keeps writing temp column to tableinfo during upgrade from 8.1 -> 8.5, when there are multiple owners #58843
Labels
affects-8.5
This bug affects the 8.5.x(LTS) versions.
component/ddl
This issue is related to DDL of TiDB.
severity/major
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)
A
ALTER TABLE mysql.tidb_runaway_queries MODIFY COLUMN
plan_digestvarchar(64) DEFAULT '';
submitted by the 8.5 node which will force to be owner, and the job is using v1 args, but it contains 8 args, below is the code of 8.5.0tidb/pkg/meta/model/job_args.go
Lines 1690 to 1694 in 244062f
A
, it will append args, but A only uses the first 8, the appended args is useless.tidb/pkg/ddl/ddl_api.go
Line 6027 in 945d07c
modifyInfo.changingCol
is nil all the time, and it's initialized and inserted into the tableinfo every time(code of 8.1.0):tidb/pkg/ddl/column.go
Lines 570 to 571 in 945d07c
A
keeps running the job, we got a tableinfo like this:2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
see title
The text was updated successfully, but these errors were encountered: