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

index merge dead loop when paging is used #36632

Closed
tiancaiamao opened this issue Jul 27, 2022 · 1 comment · Fixed by #36633
Closed

index merge dead loop when paging is used #36632

tiancaiamao opened this issue Jul 27, 2022 · 1 comment · Fixed by #36633
Assignees
Labels
affects-6.2 severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@tiancaiamao
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

outfile.txt

mysql -h 127.0.0.1 -u root -P 4000 -A test < outfile.txt
select/*+ use_index_merge(t_alias) */ * from IDT_MULTI15921STROBJSTROBJ t_alias where
    col3 <= "821:19:48" and
    (col3 <= "821:19:48" or
	  col1 in ("OFJHCEKCQGT:MXI7P3[YO4N0DF=2XJWJ4Z9Z;HQ8TMUTZV8YLQAHWJ4BDZHR3A",
		   "PXWTHJ?R]P=`Y",
		   "M5=T5FLQEZMPZAXH]4G:TSYYYVQ7O@4S6C3N8WPFKSP;SRD6VW@94BBH8XCT",
		   "P]I52Y46F?@RMOOF6;FWDTO`7FIT]R:]ELHD[CNLDSHC7FPBYOOJXLZSBV^5C^AAF6J5BCKE4V9==@H=4C]GMZXPNM",
		   "M@V^`^8I",
		   "QLDIOY[Y:JZR@OL__I^@FBO=O_?WOOR:2BE:QJC",
		   "M@HGGFM43C7",
		   "@M`IHSJQ8HBTGOS`=VW]QBMLVWN`SP;E>EEXYKV1POHTOJQPGCPVR=TYZMGWABUQR07J8U::W4",
		   "N`ZN4P@9T[JW;FR6=FA4WP@APNPG[XQVIK4]F]2>EC>JEIOXC``;;?OHP",
		   "^YSQT0]V@9TFN>^WB6G?NG@S8>VYOM;BSC@<BCQ6"));

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

No error, get the query result

3. What did you see instead (Required)

This query never finish, a dead loop happen.

4. What is your TiDB version? (Required)

master e39ef4c

@tiancaiamao tiancaiamao added type/bug The issue is confirmed as a bug. severity/major affects-6.2 labels Jul 27, 2022
@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 labels Jul 27, 2022
@tiancaiamao tiancaiamao 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 labels Jul 27, 2022
@tiancaiamao
Copy link
Contributor Author

This bug exists a long time ago, but it's not triggered without enable paging.

Ref #35633

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.2 severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants