Skip to content

TIDB partion region scatter caller is wrong  #46135

@bufferflies

Description

@bufferflies

Bug Report

In past, TIDB will scatter partition region by using different group(partition id), but pd scatter this region depence on the group.
Different group means them has no relationship.
Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set global tidb_scatter_region=on;
select now(); 
create table test.t1(id int,b int) shard_row_id_bits=4 partition by hash(id) partitions 2000; 
select now();

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

scatter leader and peer is ok

3. What did you see instead (Required)

scatter leader and peer can't work

4. What is your TiDB version? (Required)

above 6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions