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

the results of tikv and tiflash are different #37258

Closed
ChenPeng2013 opened this issue Aug 22, 2022 · 1 comment · Fixed by pingcap/tiflash#5839
Closed

the results of tikv and tiflash are different #37258

ChenPeng2013 opened this issue Aug 22, 2022 · 1 comment · Fixed by pingcap/tiflash#5839
Assignees
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 component/tiflash severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@ChenPeng2013
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

use test;
source [test.txt](https://github.com/pingcap/tidb/files/9391075/test.txt)
alter table PK_HP9202 set tiflash replica 1;
select sleep(5);
select /*+ read_from_storage(tikv[PK_HP9202]) */ count(*) from PK_HP9202 where col1  or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;
select /*+ read_from_storage(tiflash[PK_HP9202]) */ count(*) from PK_HP9202 where col1  or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;

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

3. What did you see instead (Required)

MySQL [test]> select /*+ read_from_storage(tikv[PK_HP9202]) */ count(*) from PK_HP9202 where col1  or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;
+----------+
| count(*) |
+----------+
|      102 |
+----------+
1 row in set (0.01 sec)

MySQL [test]> select /*+ read_from_storage(tiflash[PK_HP9202]) */ count(*) from PK_HP9202 where col1  or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;
+----------+
| count(*) |
+----------+
|       70 |
+----------+
1 row in set (0.03 sec)

4. What is your TiDB version? (Required)

Release Version: v6.3.0-alpha
Edition: Community
Git Commit Hash: 8b5b724d8a932239303a1d0ba547323eb0e5161b
Git Branch: heads/refs/tags/v6.3.0-alpha
UTC Build Time: 2022-08-19 14:31:05
GoVersion: go1.18.5
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 labels Aug 22, 2022
@windtalker windtalker added sig/execution SIG execution affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 and removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 labels Sep 8, 2022
@windtalker windtalker added affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 labels Sep 8, 2022
@xzhangxian1008
Copy link
Contributor

/assign

ti-chi-bot pushed a commit to pingcap/tiflash that referenced this issue Sep 14, 2022
ti-chi-bot added a commit to pingcap/tiflash that referenced this issue Sep 14, 2022
ti-chi-bot added a commit to pingcap/tiflash that referenced this issue Sep 20, 2022
ti-chi-bot added a commit to pingcap/tiflash that referenced this issue Sep 20, 2022
ti-chi-bot added a commit to pingcap/tiflash that referenced this issue Sep 20, 2022
ti-chi-bot added a commit to pingcap/tiflash that referenced this issue Sep 20, 2022
ti-chi-bot added a commit to pingcap/tiflash that referenced this issue Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 component/tiflash severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants