Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed May 29, 2023
1 parent 8a4b0bf commit 33af013
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ private SelectResponse process(RegionTask regionTask) {
RangeSplitter.newSplitter(clientSession.getTiKVSession().getRegionManager())
.splitRangeByRegion(ranges, storeType));
} catch (Exception e) {
// If the pd is switching leader, the region invalid exception will be thrown. In this
// case, we can retry with the original task.
logger.warn("split range by region error, retry with the original task", e);
remainTasks.add(task);
}
Expand Down

0 comments on commit 33af013

Please sign in to comment.