[MDEV-615] LP:789796 - mtr errors with index_intersect_innodb Created: 2011-05-29  Updated: 2014-03-17  Resolved: 2014-03-17

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Vladislav Vaintroub Assignee: Igor Babaev
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug789796.xml    

 Description   

From time to time, index_intersect_innodb fails with a diff in EXPLAIN output like this.

— c:/buildbot/win32-debug/build/mysql-test/r/index_intersect_innodb.result 2011-05-29 07:42:17.476000000 +0000
+++ c:\buildbot\win32-debug\build\mysql-test\r\index_intersect_innodb.reject 2011-05-29 08:02:39.034768300 +0000
@@ -372,7 +372,7 @@
SELECT * FROM City
WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Population,Name,Country 4,35,3 NULL # Using sort_intersect(Population,Name,Country); Using where
+1 SIMPLE City index_merge Population,Country,Name Population,Country,Name 4,3,35 NULL # Using sort_intersect(Population,Country,Name); Using where
SELECT * FROM City USE INDEX ()
WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
ID Name Country Population

Note the changed order of fields (Population,Name,Country) vs (Population,Country,Name)

Example of failure: http://buildbot.askmonty.org/buildbot/builders/win32-debug/builds/126/steps/test/logs/stdio



 Comments   
Comment by Rasmus Johansson (Inactive) [ 2011-06-15 ]

Launchpad bug id: 789796

Comment by Elena Stepanova [ 2014-03-17 ]

The test was fixed by the following revision:

            ------------------------------------------------------------
            revno: 2977.4.2
            revision-id: monty@askmonty.org-20110511125942-mxer28heahg3813z
            parent: monty@askmonty.org-20110511105917-8v53edwohghfxtr1
            fixes bug: https://launchpad.net/bugs/778917
            committer: Michael Widenius <monty@askmonty.org>
            branch nick: maria-5.3-mvl34
            timestamp: Wed 2011-05-11 15:59:42 +0300
            message:
              Fixed a memory overrun in dynamic columns when sending in a mailformed (too short in this case) string.
            ------------------------------------------------------------

Generated at Thu Feb 08 06:30:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.