tikv/client-rust

Scan returning empty results

Closed this issue · 1 comments

We were running into an issue with scans where periodically we noticed scans returning empty results for datasets that were present in a cluster. The hypothesis was that the scans were returning empties when the regions are undergoing splits. While trying to reproduce the issue (by issuing splits from pd-ctl), we found out that when there's a region error (epoch_version_mismatch et al), the scan_inner is not triggering any cache invalidations and subsequent retries. The scan simply returns an empty. Here's the PR #456 to fix the issue by wrapping the scans in a retryer upon any region errors.

cc: @pingyu @ekexium @andylokandy.

Fix in #456. Thanks @pingyu @iosmanthus @hbisheng @zhangjinpeng87 for shaping the PR.