This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Description Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
Upgrade TiDB cluster from v4.0.0 to v4.0.9. then use BR v4.0.9 to backup.
What did you expect to see?
backup success.
What did you see instead?
[ERROR] [backup.go:25] ["failed to backup"] [error="[types:1406]Data Too Long, field len 5, data len 6"] [errorVerbose="[types:1406]Data Too Long, field len 5, data len 6\n
github.com/pingcap/errors.AddStack\n
\t github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\n
github.com/pingcap/errors.(*Error).GenWithStack\n
\t github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/normalize.go:147\n
github.com/pingcap/tidb/types.ProduceStrWithSpecifiedTp\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/types/datum.go:995\n
github.com/pingcap/tidb/types.(*Datum).convertToString\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/types/datum.go:942\n
github.com/pingcap/tidb/types.(*Datum).ConvertTo\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/types/datum.go:821\n
github.com/pingcap/tidb/statistics/handle.(*Handle).histogramFromStorage\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/statistics/handle/handle.go:667\n
github.com/pingcap/tidb/statistics/handle.(*Handle).columnStatsFromStorage\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/statistics/handle/handle.go:460\n
github.com/pingcap/tidb/statistics/handle.(*Handle).tableStatsFromStorage\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/statistics/handle/handle.go:539\n
github.com/pingcap/tidb/statistics/handle.(*Handle).tableStatsToJSON\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/statistics/handle/dump.go:89\n
github.com/pingcap/tidb/statistics/handle.(*Handle).DumpStatsToJSON\n
\t github.com/pingcap/tidb@v1.1.0-beta.0.20201214152324-ce2f365189d3/statistics/handle/dump.go:76\n
github.com/pingcap/br/pkg/backup.BuildBackupRangeAndSchema\n
\t github.com/pingcap/br@/pkg/backup/client.go:340\n
github.com/pingcap/br/pkg/task.RunBackup\n
\t github.com/pingcap/br@/pkg/task/backup.go:257\n
github.com/pingcap/br/cmd.runBackupCommand\n
\t github.com/pingcap/br@/cmd/backup.go:24\n
github.com/pingcap/br/cmd.newFullBackupCommand.func1\n
\t github.com/pingcap/br@/cmd/backup.go:85\n
github.com/spf13/cobra.(*Command).execute\n
\t github.com/spf13/cobra@v1.0.0/command.go:842\n
github.com/spf13/cobra.(*Command).ExecuteC\n
\t github.com/spf13/cobra@v1.0.0/command.go:950\n
github.com/spf13/cobra.(*Command).Execute\n
\t github.com/spf13/cobra@v1.0.0/command.go:887\n
main.main\n
\t github.com/pingcap/br@/main.go:58\n
runtime.main\n
\t runtime/proc.go:203\n
runtime.goexit\n
\t runtime/asm_amd64.s:1357"] [
What version of BR and TiDB/TiKV/PD are you using?
BR v4.0.9
TiDB v4.0.9 (upgrade from v4.0.0)
Reactions are currently unavailable
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
Upgrade TiDB cluster from v4.0.0 to v4.0.9. then use BR v4.0.9 to backup.
What did you expect to see?
backup success.
What did you see instead?
BR v4.0.9
TiDB v4.0.9 (upgrade from v4.0.0)