You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error.
# First setup a cluster with tiflash
# Create table and data in tidb and add tiflash replica
mysql> CREATE DATABASE IF NOT EXISTS `test`;
mysql> CREATE TABLE `test`.`t` (`Year` year(4) DEFAULT 0 NOT NULL) DEFAULT CHARSET=utf8mb4;
mysql> ALTER TABLE t set tiflash replica 1;
mysql> select * from information_schema.tiflash_replica; # Use this to check tiflash replica status
# Create a file with some rows
# Load data with tidb-lightning
What did you expect to see?
In TiFlash v3.1, we don't support IngestSST command. Hope that tidb-lightning can check if target table has tiflash replica, if have, give an error to tell user we don't support it for now.
What did you see instead?
lightning will exit with errors and data do NOT loaded.
[2020/02/27 13:20:45.637 +08:00] [INFO] [restore.go:473] [progress] [files="1/1 (100.0%)"] [tables="0/1 (0.0%)"] [speed(MiB/s)=0.00000007947365515542592] [state=post-processing] []
[2020/02/27 13:20:52.188 +08:00] [WARN] [backend.go:286] ["import spuriously failed, going to retry again"] [engineTag=`test`.`t`:0] [engineUUID=c32475d3-88af-5442-b950-a0e82e40d337] [retryCnt=2] [error="rpc error: code = Unknown desc = ImportJobFailed(\"retry 5 times still 1 ranges failed\")"]
[2020/02/27 13:20:55.188 +08:00] [ERROR] [restore.go:1404] ["import and cleanup engine failed"] [engineTag=`test`.`t`:0] [engineUUID=c32475d3-88af-5442-b950-a0e82e40d337] [takeTime=3m9.505358837s] [error="[c32475d3-88af-5442-b950-a0e82e40d337] import reach max retry 3 and still failed: rpc error: code = Unknown desc = ImportJobFailed(\"retry 5 times still 1 ranges failed\")"]
[2020/02/27 13:20:55.188 +08:00] [ERROR] [restore.go:795] ["import whole table failed"] [table=`test`.`t`] [takeTime=3m9.526326415s] [error="[c32475d3-88af-5442-b950-a0e82e40d337] import reach max retry 3 and still failed: rpc error: code = Unknown desc = ImportJobFailed(\"retry 5 times still 1 ranges failed\")"]
Versions of the cluster
TiDB-Lightning version (run tidb-lightning -V):
./importer/tidb-lightning -V
Release Version: v3.0.5-2-g605760d
Git Commit Hash: 605760d1b2025d1e1a8b7d0c668c74863d7d1271
Git Branch: master
UTC Build Time: 2019-12-04 07:23:09
Go Version: go version go1.13.1 linux/amd64
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you expect to see?
In TiFlash v3.1, we don't support IngestSST command. Hope that tidb-lightning can check if target table has tiflash replica, if have, give an error to tell user we don't support it for now.
What did you see instead?
lightning will exit with errors and data do NOT loaded.
Versions of the cluster
TiDB-Lightning version (run
tidb-lightning -V):TiKV-Importer version (run
tikv-importer -V)TiKV version (run
tikv-server -V):TiDB cluster version (execute
SELECT tidb_version();in a MySQL client):Other interesting information (system version, hardware config, etc):
Operation logs
tidb-lightning.logfor TiDB-Lightning if possibletikv-importer.logfrom TiKV-Importer if possibleConfiguration of the cluster and the task
tidb-lightning.tomlfor TiDB-Lightning if possibletikv-importer.tomlfor TiKV-Importer if possibleinventory.iniif deployed by AnsibleScreenshot/exported-PDF of Grafana dashboard or metrics' graph in Prometheus for TiDB-Lightning if possible