-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.component/brThis issue is related to BR of TiDB.This issue is related to BR of TiDB.report/customerCustomers have encountered this bug.Customers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Start a cluster with:
tiup playground nightly --tiflash=0 --db.config=./op/adhoc/index-length-8001.toml
Where the config index-length-8001.toml
is:
max-index-length = 8001
Do the following:
mycli --port 4000 --execute "DROP TABLE IF EXISTS test.huge_idx;"
mycli --port 4000 --execute "CREATE TABLE test.huge_idx(id int AUTO_INCREMENT, blob1 varchar(1000), blob2 varchar(1000))"
$br backup full -s (s3path "$strg_prefix-full") $argv
set backupts (mcli cat "loc/breeze/$strg_prefix-full/backupmeta" | _get_brpb BackupMeta | rg -r '$1' 'end_version: (\d+)$')
$br log start -s (s3path "$strg_prefix-incr") --task-name test $argv --start-ts "$backupts"
mycli --port 4000 --execute "CREATE INDEX huge ON test.huge_idx(blob1, blob2);"
# Wait until the checkpoint advances...
$br restore point -s (s3path huge_index-incr) --full-backup-storage (s3path huge_index-full)
2. What did you expect to see? (Required)
Restore should success.
3. What did you see instead (Required)
repair ingest index huge for table test.huge_idx ABORTED
["restore log failed summary"] [error="failed to repair ingest index: [ddl:1071]Specified key was too long (4000 bytes); max key length is 3072 bytes"]
4. What is your TiDB version? (Required)
nightly
Metadata
Metadata
Assignees
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.component/brThis issue is related to BR of TiDB.This issue is related to BR of TiDB.report/customerCustomers have encountered this bug.Customers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.