client-rust icon indicating copy to clipboard operation
client-rust copied to clipboard

Scan returning empty results

Open limbooverlambda opened this issue 1 year ago • 0 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 https://github.com/tikv/client-rust/pull/456 to fix the issue by wrapping the scans in a retryer upon any region errors.

cc: @pingyu @ekexium @andylokandy.

limbooverlambda avatar Jun 17 '24 21:06 limbooverlambda