*: insufficient bytes decode value
reported when adding index for some split common-handled tables.
#20727
Labels
insufficient bytes decode value
reported when adding index for some split common-handled tables.
#20727
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The job ran successfully.
3. What did you see instead (Required)
Error reported when executing the DDL job:
4. What is your TiDB version? (Required)
This can be reproduced in the master version
Root Cause
For now,
ADD INDEX
(as well as some other DDL jobs that need data-reorganization) assume that the 'startKey' and 'endKey' of a region can always be decoded:tidb/ddl/backfilling.go
Line 359 in 937949f
But it is not the case for:
SPLIT TABLE
for clustered index.The text was updated successfully, but these errors were encountered: