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

TiDB return wrong result when select partition table from TiFlash #19089

Closed
lidezhu opened this issue Aug 10, 2020 · 7 comments · Fixed by #19234
Closed

TiDB return wrong result when select partition table from TiFlash #19089

lidezhu opened this issue Aug 10, 2020 · 7 comments · Fixed by #19234
Assignees
Labels
priority/P0 The issue has P0 priority. severity/critical type/bug The issue is confirmed as a bug.

Comments

@lidezhu
Copy link
Contributor

lidezhu commented Aug 10, 2020

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

run the following sql:
create table test.employees (id int,store_id int not null)partition by hash(store_id) partitions 4;
alter table test.employees set tiflash replica 1;

wait for table available in tiflash

run the following sql:
insert into test.employees(store_id) values (3);
set @@session.tidb_isolation_read_engines = "tiflash"
select * from test.employees

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

+------+----------+
| id | store_id |
+------+----------+
| NULL | 3 |
+------+----------+

3. What did you see instead (Required)

empty result

4. What is your TiDB version? (Required)

+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v4.0.0-beta.2-921-gb75a30fda
Edition: Community
Git Commit Hash: b75a30f
Git Branch: master
UTC Build Time: 2020-08-09 02:54:26
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

@lidezhu lidezhu added the type/bug The issue is confirmed as a bug. label Aug 10, 2020
@lzmhhh123 lzmhhh123 self-assigned this Aug 10, 2020
@lidezhu
Copy link
Contributor Author

lidezhu commented Aug 10, 2020

Seems caused by this pr: #18981

@cfzjywxk
Copy link
Contributor

@tiancaiamao PTAL

@lidezhu lidezhu changed the title TiDB return empty result when select partition table from TiFlash TiDB return wrong result when select partition table from TiFlash Aug 10, 2020
@lzmhhh123 lzmhhh123 assigned tiancaiamao and unassigned lzmhhh123 Aug 10, 2020
@tiancaiamao
Copy link
Contributor

I can not reproduce it @lidezhu

@lidezhu
Copy link
Contributor Author

lidezhu commented Aug 12, 2020

I can not reproduce it @lidezhu

Make sure your tidb version include this pr: #18981

@tiancaiamao
Copy link
Contributor

I can not reproduce it @lidezhu

Make sure your tidb version include this pr: #18981

I see. I get this error in the master branch

mysql> select * from test.employees;
ERROR 1105 (HY000): Do not found result field type for current dag request

@lidezhu
Copy link
Contributor Author

lidezhu commented Aug 12, 2020

I can not reproduce it @lidezhu

Make sure your tidb version include this pr: #18981

I see. I get this error in the master branch

mysql> select * from test.employees;
ERROR 1105 (HY000): Do not found result field type for current dag request

This error is caused by using the wrong version of tiflash. Please also use the latest version on master branch for tiflash.

@zanmato1984 zanmato1984 added the priority/P0 The issue has P0 priority. label Aug 14, 2020
@zanmato1984
Copy link
Contributor

Bump the priority to P0 as this bug blocks TiFlash daily regression and we are have risks that we may miss catching some other bugs by daily regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/P0 The issue has P0 priority. severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants