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
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tried to reproduce it locally, but cannot reproduce right now, the env is:
3pd 8c16g, 3 tidb 8c16g each with 50G disk, it's small, but it's enough to hold the target index which is around 8G; 3 tikv 8c32g
the table have about 200m rows, table structure similar to this
createtablet(
a bigint,
b bigint,
c bigint,
d bigint,
e varchar(32),
.... more columns... total 41 columns, most are int/decimal types, some are varchar with a small length
primary key(a, b, c),
key(a, d, b)
)
add index with alter table t add index idx_ade(a, d, e);
the dxf task have 3 subtask, the second runs faster, so it ingest first(also the only one to ingest, as we use a distributed lock), and at the time of ingest, and when the subtask start ingest, seems all files are ingested to L0 directly, like below, so it triggers tikv's flow control, and report ServerIsBusy too many sst files are ingesting
before ingest we can see TiKV have some files at L0, and from tikv log its range is from a small table-id to a large one, and it includes the table-id of target table, so overlaps with the index KV range too. not sure if it's related
after TiKV compaction, the number of files in L0 decrease, so the second subtask continues, and success later
the first subtask success without ServerIsBusy for this subtask.
the third subtask is the last to ingest, and it keeps failed with ServerIsBusy too many sst files are ingesting, and from TiKV monitoring, it keeps ingest at L0, after the retry of local backend used up, DXF starts retry the whole subtask, but it never ends, and keeps reporting above error. the issue of unlimited retry of DXF is recored in here add retry limit to DXF #58814
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
8.1.1
The text was updated successfully, but these errors were encountered:
Also there's a "ingestion pick level" in metrics of "TiKV Details" - "RocksDB - kv", we can see if it first pick L6 then gradually goes to L5, L4, ... L0
insert into t and t2 in turn, and fill a lot of data, until tikv flush memtable into L0, then we will have a L0 range from table id of t to t2 which overlap with t1's range
import to t1 with a lot of region jobs(at least 11 to trigger tikv flow control)
we see
[2025/01/09 11:24:55.561 +08:00] [WARN] [region_job.go:659] ["meet error and handle the job later"] ["job stage"=wrote] [error="[Lightning:KV:ServerIsBusy]too many sst files are ingesting"] [region="{ID=478,startKey=7480000000000000FF6A5F728000000000FF0325C00000000000FA,endKey=7480000000000000FF6A5F728000000000FF0339DA0000000000FA,epoch=\"conf_ver:5 version:125 \",peers=\"id:479 store_id:1 ,id:480 store_id:4 ,id:481 store_id:5 \"}"] [start=74800000000000006A5F728000000000033560] [end=74800000000000006A5F7280000000000339DA]
Also there's a "ingestion pick level" in metrics of "TiKV Details" - "RocksDB - kv", we can see if it first pick L6 then gradually goes to L5, L4, ... L0
for the case described in the issue, this panel have no data at the first report ServerIsBusy of second subtask, but it does have after a while.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tried to reproduce it locally, but cannot reproduce right now, the env is:
alter table t add index idx_ade(a, d, e);
ServerIsBusy too many sst files are ingesting
ServerIsBusy too many sst files are ingesting
, and from TiKV monitoring, it keeps ingest at L0, after the retry of local backend used up, DXF starts retry the whole subtask, but it never ends, and keeps reporting above error. the issue of unlimited retry of DXF is recored in here add retry limit to DXF #588142. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
8.1.1
The text was updated successfully, but these errors were encountered: