Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightning should retry with error "write to tikv with no leader returned" #45673

Closed
GMHDBJD opened this issue Jul 28, 2023 · 1 comment · Fixed by #46300
Closed

lightning should retry with error "write to tikv with no leader returned" #45673

GMHDBJD opened this issue Jul 28, 2023 · 1 comment · Fixed by #46300
Assignees
Labels
affects-6.5 affects-7.1 component/lightning This issue is related to Lightning of TiDB. severity/major type/bug The issue is confirmed as a bug.

Comments

@GMHDBJD
Copy link
Contributor

GMHDBJD commented Jul 28, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

import data with lightning

2. What did you expect to see? (Required)

import succeed

3. What did you see instead (Required)

[2023/07/28 13:30:02.226 +00:00] [ERROR] [backend.go:350] ["import failed"] [engineTag=`bsc`.`erc20_transfer`:9] [engineUUID=c73cf392-09cb-52e1-bcc3-310733ed3d12] [retryCnt=0] [takeTime=1m27.176226425s] [error="write to tikv with no leader returned, region '1800720', leader: 0"]

4. What is your TiDB version? (Required)

v7.1.1

@GMHDBJD GMHDBJD added type/bug The issue is confirmed as a bug. component/lightning This issue is related to Lightning of TiDB. labels Jul 28, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Jul 31, 2023
@lance6716
Copy link
Contributor

[2023/07/28 13:30:01.981 +00:00] [WARN] [region_job.go:364] ["write to tikv no leader"] [region="{ID=1800720,startKey=xxx,endKey=xxx,epoch="conf_ver:4889 version:66893 ",peers="id:1800721 store_id:1 ,id:1800722 store_id:28009 ,id:1800723 store_id:28010 "}"] [leader=] [leader_id=0] [sstMeta="{CF=endKeyExclusive=false,CRC32=0,length=0,regionID=1800720,regionEpoch="conf_ver:4889 version:66893 ",startKey=xxx,endKey=xxx,UUID=ca98a512-9e56-4be2-87cf-438b2f10a532}"] [kv_pairs=352211] [total_bytes=94662678]

seems this time it really has no leader

@lance6716 lance6716 self-assigned this Aug 22, 2023
@lance6716 lance6716 removed may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 labels Aug 22, 2023
@lance6716 lance6716 removed the may-affects-5.2 This bug maybe affects 5.2.x versions. label Aug 22, 2023
guoshouyan pushed a commit to guoshouyan/tidb that referenced this issue Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-7.1 component/lightning This issue is related to Lightning of TiDB. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants