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

Undesired error report when schema is changed (not null column is dropped) in rc or for-update-read. #34978

Closed
SpadeA-Tang opened this issue May 26, 2022 · 3 comments
Labels
affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 affects-6.3 affects-6.4 affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 may-affects-4.0 This bug maybe affects 4.0.x versions. severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.

Comments

@SpadeA-Tang
Copy link
Contributor

SpadeA-Tang commented May 26, 2022

Bug Report

This is another variant of #21498.

1. Minimal reproduce step (Required)

create table t (id int primary key, c int not null)
insert into t values (1, 1), (2, 2)

session 1

begin

session 2

alter table t drop column c
insert into t values

session 1

select * from t for update  // error

In READ-COMMITTED, the error is the same.

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

3. What did you see instead (Required)

ERROR 1105 (HY000): [components/tidb_query_executors/src/table_scan_executor.rs:411]: Data is corrupted, missing data for NOT NULL column (offset = 1)

4. What is your TiDB version? (Required)

@SpadeA-Tang SpadeA-Tang added the type/bug The issue is confirmed as a bug. label May 26, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 labels May 26, 2022
@jebter jebter added sig/transaction SIG:Transaction affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. labels Jun 13, 2022
@ti-chi-bot ti-chi-bot removed may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.0 labels Jun 13, 2022
@cfzjywxk
Copy link
Contributor

@SpadeA-Tang
Better to link this issue to the existing schema issues.

@SpadeA-Tang
Copy link
Contributor Author

@SpadeA-Tang Better to link this issue to the existing schema issues.

Okay,done.

@VelocityLight VelocityLight added the affects-6.5 This bug affects the 6.5.x(LTS) versions. label Dec 2, 2022
@cfzjywxk
Copy link
Contributor

Fixed on master branch a6d194b after the MDL is introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 affects-6.3 affects-6.4 affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 may-affects-4.0 This bug maybe affects 4.0.x versions. severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

5 participants