Skip to content

report error "EncodeRow error: data and columnID count not match" when deleting a row during add column DDL job with binlog open #53133

@lcwangchao

Description

@lcwangchao

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

I wrote a test to reproduce it:

lcwangchao@f434660

It has some conditions:

  1. Add column job
  2. Binlog enabled
  3. Before new column state to public, delete a row

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

no error

3. What did you see instead (Required)

        	Error:      	Received unexpected error:
        	            	EncodeRow error: data and columnID count not match 3 vs 2
        	            	github.com/pingcap/tidb/pkg/tablecodec.EncodeOldRow

4. What is your TiDB version? (Required)

master

Metadata

Metadata

Assignees

Labels

affects-5.4This bug affects the 5.4.x(LTS) versions.affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.report/customerCustomers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions