Open
Description
When we find a transaction try to insert into a region with more than 100000 items, it will do split the region to avoid too much write workload into a single region:
client-go/txnkv/transaction/2pc.go
Lines 866 to 877 in e30a3e6
However, here we send split request to TiKV.
client-go/tikv/split_region.go
Lines 144 to 149 in e30a3e6
I think we should send the split-request to PD since PD will only apply one operator to a region each time, which will help use to avoid the issue(tikv/tikv#12410) caused by two operators run on the same region concurrently.
Metadata
Assignees
Labels
No labels