Skip to content

[Bug] The result error when load and schema change concurrent execution #49333

@sollhui

Description

@sollhui

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master

What's Wrong?

Create table

CREATE TABLE IF NOT EXISTS test_cloud_mow_new_tablet_compaction (
      `k1` int NOT NULL,
      `c1` int,
      `c2` int,
      `c3` int
      )UNIQUE KEY(k1)
  DISTRIBUTED BY HASH(k1) BUCKETS 1
  PROPERTIES (
      "enable_unique_key_merge_on_write" = "true",
      "disable_auto_compaction" = "true",
      "replication_num" = "1");

Do schema change:

alter table test_cloud_mow_new_tablet_compaction modify column c1 varchar(100);

load and schema change concurrent execution:

insert into test_cloud_mow_new_tablet_compaction values(1,99,99,99);

Result is incorrect:

mysql> select * from  test_cloud_mow_new_tablet_compaction;
+------+------+------+------+
| k1   | c1   | c2   | c3   |
+------+------+------+------+
|    1 | \N  |   99 |   99 |
+------+------+------+------+
 rows in set (0.08 sec)

What You Expected?

Result is correct:1,99,99,99

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions