Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

BR cannot restore to alter-primary-key = true server #215

@kennytm

Description

@kennytm

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

First set up a TiDB with alter-primary-key = true.

Create a table:

create table test.a (a int primary key, b int unique);
insert into test.a values (42, 42);

Run backup

bin/br backup table --db test -t a -s 'local:///tmp/brapk'

Drop the table

drop table test.a;

Restore

bin/br restore table --db test -t a -s 'local:///tmp/brapk'
  1. What did you expect to see?

Restore success and checksum pass

  1. What did you see instead?

An "ranges overlapped" error

[2020/03/27 13:38:22.085 +00:00] [ERROR] [restore.go:225] ["split regions failed"] [error="ranges overlapped: [74800000000000003b5f69800000000000000100 74800000000000003b5f698000000000000001fb],
  1. What version of BR and TiDB/TiKV/PD are you using?

Cluster: 4.0
BR: master

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions