Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TiFlash has less rows than TiKV #7762

Closed
flowbehappy opened this issue Jul 6, 2023 · 2 comments · Fixed by #7901
Closed

TiFlash has less rows than TiKV #7762

flowbehappy opened this issue Jul 6, 2023 · 2 comments · Fixed by #7901

Comments

@flowbehappy
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

A use report that TiFlash has less rows than TiKV.

The root cause is that the range of some regions are in illegal format. For example:
table id: 283
start: 7480000000000001FF1B5F728000000000FF11BDC00000000000FA
end: 7480000000000001FF1B5F728000000000FF11BDC00000000000FB

img_v2_25807fb2-a231-4b30-927e-895e33d2adcg

We don't know how the data is ingested into TiFlash. But we need to make some checks on TiFlash side to prevent data lost.

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiFlash version? (Required)

@breezewish
Copy link
Member

Removed affect-6.6 ~ affect-7.1, since the check is already there for these versions.

@CalvinNeo
Copy link
Member

CalvinNeo commented Dec 6, 2023

It may panic like

Detected illegal region boundary:

and

Check compare(range.getStart(), ext_file.range.getStart()) <= 0 && compare(range.getEnd(), ext_file.range.getEnd()) >= 0

It is fixed on TiFlash 7.1.2/6.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment