Closed ti-chi-bot closed 3 months ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign xuanyu66 for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
This is an automated cherry-pick of #2774
What problem does this PR solve?
TiSpark may set the wrong range to TiKV when using
FetchHandleRDD
. We have two guesses about this:What is changed and how it works?
Since it is hard to find the root cause, we just log it and retry once when this error occurs. We use client-java's splitRangeByRegion method to avoid exceeding the bound issue. It seems this method can split the range correctly.
Spark Plan