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

add index failed with error “Error 1105 (HY000): [pd] failed to get cluster id” when inject pdleader network partition #48064

Closed
Lily2025 opened this issue Oct 30, 2023 · 0 comments · Fixed by #48095
Labels
affects-7.5 component/ddl This issue is related to DDL of TiDB. feature/developing the related feature is in development severity/major type/bug The issue is confirmed as a bug.

Comments

@Lily2025
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、run workload
2、add index for one table
3、inject pdleader network partition

case config

  • name: config_ha_pdleader_to_all_network_partition
    default: |
    tag: "ha-test-add-index"
    workloads:
    - type: sysbench
    storage: s3://benchmark/sysbench_64_7000w
    db: sysbench_64_7000w
    tableNum: 64
    tableSize: 70000000
    threads: 64
    subType: oltp_read_write
    ignoreErrors: "all"
    cases:
    - name: "ha_pdleader_to_all_network_partition"
    warmUpTime: 1m
    faultType: network_partition
    selector: "pdleader_to_all"
    period: "@every 5m"
    faultDuration: 2m
    faultTotalRunTime: 30m
    ddl:
    addIndex:
    - db: "sysbench_64_7000w"
    table: "sbtest1"
    timeout: 60m
    times: 5
    index_col_name: "c"
    job_type: "ingest"
    admin_check: false
    count_check: false

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

add index success

3. What did you see instead (Required)

add index failed with error “Error 1105 (HY000): [pd] failed to get cluster id” when inject pdleader network partition

"add index failed at 2023-10-29 16:27:07 (Error 1105 (HY000): [pd] failed to get cluster id)
operatorLogs:
[2023-10-29 16:25:16] ###### start adding index
alter table sbtest1 add index index_test_1698567916120 (c)
[2023-10-29 16:25:16] ###### wait for ddl job finish"

4. What is your TiDB version? (Required)

git hash:3682bd82cac05a75241ed9fc9f29a1d320d776a7

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Oct 30, 2023
@jebter jebter added severity/critical feature/developing the related feature is in development component/ddl This issue is related to DDL of TiDB. labels Oct 30, 2023
@ti-chi-bot ti-chi-bot bot added 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.5 may-affects-7.1 may-affects-7.5 labels Oct 30, 2023
@tangenta tangenta removed 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.5 may-affects-7.1 labels Oct 30, 2023
ti-chi-bot bot pushed a commit that referenced this issue Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 component/ddl This issue is related to DDL of TiDB. feature/developing the related feature is in development severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants