tidb icon indicating copy to clipboard operation
tidb copied to clipboard

lightning: v8.2 lightning failed to import data to v8.1 version tidb cluster

Open AkiraXie opened this issue 1 year ago • 2 comments

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. setup v8.1 tidb cluster
  2. use v8.2 lightning import data and use check-requirement = true

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

success

3. What did you see instead (Required)

failed

4. What is your TiDB version? (Required)

v8.2

AkiraXie avatar Jul 01 '24 06:07 AkiraXie

/severity major

AkiraXie avatar Jul 01 '24 06:07 AkiraXie

the cause is PD and pd-client 8.2 introduced a new API which doesn't exists in 8.1, and lightning reports unknown method BatchScanRegions for service pdpb.PD during split-scatter, see https://github.com/pingcap/tidb/pull/54153

lightning doesn't support import into clusters of lower version officially, but it DOES can do it in theory before 8.2

D3Hunter avatar Jul 01 '24 07:07 D3Hunter

after #54365 merged, the issue cannot reproduce

AkiraXie avatar Jul 05 '24 06:07 AkiraXie