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 has been 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.
Submitted a PR in PD's repo which added non-empty check for service ID in UpdateServiceGCSafePoint API: tikv/pd#3146
What did you expect to see?
Everything works well
What did you see instead?
CI failed at lightning test because lightning sets empty string as the service ID when invoking UpdaetServiceGCSafePoint
[2020-11-09T07:30:13.887Z] tidb lightning encountered error: restore table `alter_random`.`t` failed: rpc error: code = Unknown desc = service id of service safepoint cannot be empty.
By the way, it also didn't check the return value of UpdateServiceGCSafePoint, which is useful for checking whether the actual GC safepoint has already exceeded the current set value. Please consider check it.
Versions of the cluster
It occurs in CI and doesn't have detailed version info.
TiDB-Lightning version (run tidb-lightning -V):
master
TiKV-Importer version (run tikv-importer -V)
master
TiKV version (run tikv-server -V):
master
TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
master
Other interesting information (system version, hardware config, etc):
The issue may also exist in 4.0 branch.
Operation logs
No need
Configuration of the cluster and the task
No need
Screenshot/exported-PDF of Grafana dashboard or metrics' graph in Prometheus for TiDB-Lightning if possible
No need
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
Submitted a PR in PD's repo which added non-empty check for service ID in UpdateServiceGCSafePoint API: tikv/pd#3146
Everything works well
CI failed at lightning test because lightning sets empty string as the service ID when invoking UpdaetServiceGCSafePoint
And I read the code. It invokes the API here:
tidb-lightning/lightning/restore/checksum.go
Lines 386 to 387 in 25a3711
and
m.serviceID
seems never set.By the way, it also didn't check the return value of
UpdateServiceGCSafePoint
, which is useful for checking whether the actual GC safepoint has already exceeded the current set value. Please consider check it.Versions of the cluster
It occurs in CI and doesn't have detailed version info.
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):
The issue may also exist in 4.0 branch.
Operation logs
Configuration of the cluster and the task
Screenshot/exported-PDF of Grafana dashboard or metrics' graph in Prometheus for TiDB-Lightning if possible
The text was updated successfully, but these errors were encountered: