Fix the issue by swap start_key & end_key before requesting regions from PD, and swap back before apply shards to request. As the start_key & end_key in reverse range request are in the meaning of [end_key, start_key).
The issue can be reproduced before the shardable_range was fixed. See 435cf0a36dbb1026c32f757f94bf86f7e713fbb1:
Close #436
Fix the issue by swap
start_key
&end_key
before requesting regions from PD, and swap back before apply shards to request. As thestart_key
&end_key
in reverse range request are in the meaning of[end_key, start_key)
.The issue can be reproduced before the
shardable_range
was fixed. See 435cf0a36dbb1026c32f757f94bf86f7e713fbb1:See also https://github.com/tikv/client-rust/actions/runs/6989951811/job/19018973704?pr=438.