Skip to content

[Bug]: Delete make r-w conflict #11815

Closed
Closed

Description

@zengyan1

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):6ee7721126f7799b15252cc1714e0d6fc86b5678
- Hardware parameters:
- OS type:
- Others:
On Dev1 Server

Actual Behavior

一个只有一列int的表,有一半1一半2:

mo> select count() from t;
count(
)
268435456
mo> delete from t where a=1;
ERROR 20618 (HY000): r-w conflict

Expected Behavior

No response

Steps to Reproduce

create table t(a int);
insert into t values (1),(2);
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
select count(*) from t;
delete from t where a=1;

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s0
    on Sep 18, 2023
  2. added this to the 1.0.0 milestone on Sep 18, 2023
  3. triump2020 commented on Sep 21, 2023

    @triump2020
    Contributor

    investigating

  4. triump2020 commented on Sep 25, 2023

    @triump2020
    Contributor
    1. deleting 268435456 rows spends too much time which exceeds the ttled time of hashpagetable . so leads to rw conflict

    1695609566774

    #10463

  5. modified the milestones: 1.0.0, 1.1.0 on Oct 7, 2023
  6. triump2020 commented on Oct 7, 2023

    @triump2020
    Contributor
    no progress
    
  7. added
    severity/s1
    and removed
    severity/s0
    on Oct 9, 2023
  8. 15 remaining items

  9. Ariznawlll commented on Oct 12, 2024

    @Ariznawlll
    Collaborator

    依赖:#19277

  10. Ariznawlll commented on Oct 18, 2024

    @Ariznawlll
    Collaborator
    mysql> select git_version();
    +---------------+
    | git_version() |
    +---------------+
    | 1e16834       |
    +---------------+
    1 row in set (0.00 sec)
    
    create table t(a int);
    insert into t values (1),(2);
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    insert into t select * from t;
    select count(*) from t;
    delete from t where a=1;
    
    image

    log: https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22o7c%22:%7B%22datasource%22:%22loki%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bnamespace%3D%5C%22mo-snapshot-test-20241017%5C%22%7D%20%7C%3D%20%60r-w%20conflict%60%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22loki%22%7D,%22editorMode%22:%22builder%22%7D%5D,%22range%22:%7B%22from%22:%221729217400000%22,%22to%22:%221729218600000%22%7D%7D%7D&schemaVersion=1&orgId=1

  11. modified the milestones: 2.0.0, 2.1.0 on Oct 19, 2024
  12. XuPeng-SH commented on Nov 18, 2024

    @XuPeng-SH
    Contributor

    fixed. @zengyan1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions