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 sometimes produce inconsistent result for bit operations #16781

Closed
breezewish opened this issue Apr 24, 2020 · 1 comment
Closed

TiDB sometimes produce inconsistent result for bit operations #16781

breezewish opened this issue Apr 24, 2020 · 1 comment
Assignees
Labels
component/expression priority/P1 The issue has P1 priority. severity/critical type/bug The issue is confirmed as a bug.

Comments

@breezewish
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. What did you do?

This is an issue discovered by randgen:

https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/tidb_ghpr_integration_copr_test/detail/tidb_ghpr_integration_copr_test/4098/pipeline/

Several bit operation related SQLs are failed, producing incorrect & inconsistent results. For example:

[2020-04-23T10:35:35.043Z] Statement: #22 -  SELECT `col_float_key` << ( ( '2016-09-24 08:37:18.025179' ^ `col_float_unsigned_key` ) >> 8642970634877403136 ) AS field1 FROM `table1_int_autoinc` WHERE ! `col_smallint_unsigned` LIMIT 8 /* QNO 24 CON_ID 96 */ ;
[2020-04-23T10:35:35.043Z] NoPushDown Output: 
[2020-04-23T10:35:35.043Z] field1
[2020-04-23T10:35:35.043Z] NULL
[2020-04-23T10:35:35.043Z] 
[2020-04-23T10:35:35.043Z] 
[2020-04-23T10:35:35.043Z] WithPushDown Output: 
[2020-04-23T10:35:35.043Z] field1
[2020-04-23T10:35:35.043Z] 

Test logs are available in

image

Test case sources are available in https://github.com/tikv/copr-test/tree/master/push-down-test/prepare

2. What did you expect to see?

All test pass

3. What did you see instead?

Test fails sometimes.

4. What version of TiDB are you using? (tidb-server -V or run select tidb_version(); on TiDB)

master

@breezewish breezewish added the type/bug The issue is confirmed as a bug. label Apr 24, 2020
@fzhedu fzhedu added the priority/P1 The issue has P1 priority. label Aug 27, 2020
@qw4990
Copy link
Contributor

qw4990 commented Sep 1, 2020

Close since it cannot be reproduced. We can open it in the future if this problem occurs again.

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

No branches or pull requests

6 participants