Skip to content

[Bug]: ctrl+c during recovery, the recovered table and data exists. #16098

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

4257dc6

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

恢复某表的数据 建表+插入数据应该在一个事务里,如果ctrl+c,事务没结束,不应该成功,此时表恢复失败(表没建成功且表中无数据)

Steps to Reproduce

集群环境:
create database big_data_test;
use big_data_test;
create table  if not exists big_data_test.table_basic_for_load_1B( col1 tinyint, col2 smallint, col3 int, col4 bigint, col5 tinyint unsigned, col6 smallint unsigned, col7 int unsigned, col8 bigint unsigned, col9 float, col10 double, col11 varchar(255), col12 Date, col13 DateTime, col14 timestamp, col15 bool, col16 decimal(16,6), col17 text, col18 json, col19 blob, col20 binary(255), col21 varbinary(255), col22 vecf32(3), col23 vecf32(3), col24 vecf64(3), col25 vecf64(3));
load data url s3option {'endpoint'='http://cos.ap-guangzhou.myqcloud.com','access_key_id'='***','secret_access_key'='***','bucket'='mo-load-guangzhou-1308875761', 'filepath'='mo-big-data/1000000000_20_columns_load_data_new.csv'} into table big_data_test.table_basic_for_load_1B fields terminated by '|' lines terminated by '\n' parallel 'true';
(具体的ak sk如有需要,请联系我)
create snapshot sp03 for account sys;

drop database big_data_test;

restore account sys database big_data_test table table_basic_for_load_1b from snapshot sp03;

Additional information

No response

Activity

  1. added
    kind/bug
    on May 14, 2024
  2. added this to the 1.2.0 milestone on May 14, 2024
  3. added
    severity/s0
    on May 14, 2024
  4. modified the milestones: 1.2.0, 1.2.1 on May 15, 2024
  5. qingxinhome commented on May 20, 2024

    @qingxinhome
    Contributor

    Pending processing

  6. qingxinhome commented on May 24, 2024

    @qingxinhome
    Contributor

    Pending processing

  7. qingxinhome commented on May 29, 2024

    @qingxinhome
    Contributor

    Pending processing

  8. aressu1985 commented on May 30, 2024

    @aressu1985
    Contributor

    和松哥沟通,取消操作需要具备原子性,需要再1.2.1解决

  9. qingxinhome commented on Jun 4, 2024

    @qingxinhome
    Contributor

    Pending processing

  10. qingxinhome commented on Jun 6, 2024

    @qingxinhome
    Contributor

    pr已提交

  11. qingxinhome commented on Jun 7, 2024

    @qingxinhome
    Contributor

    The issue has been resolved, please verify and test @Ariznawlll @aressu1985 @daviszhen @YANGGMM

  12. Ariznawlll commented on Jun 11, 2024

    @Ariznawlll
    CollaboratorAuthor

    commit : 09c4d95
    image
    verified.

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

Metadata

Metadata

Assignees

Labels

kind/bugphase/testingresolved/v1.2.1severity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions