Bug #37803 | Test "partition_alter2_innodb" exhausts resources (time and/or memory) | ||
---|---|---|---|
Submitted: | 2 Jul 2008 11:09 | Modified: | 17 Oct 2008 17:40 |
Reporter: | Joerg Bruehe | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Tests | Severity: | S3 (Non-critical) |
Version: | 5.1.26,6.0.6 | OS: | Any |
Assigned to: | Mattias Jonsson | CPU Architecture: | Any |
[2 Jul 2008 11:09]
Joerg Bruehe
[11 Jul 2008 10:48]
Mattias Jonsson
bzr gcommit failed to send commit mail since too many/big results file changes, so here is the 'bzr diff -r -2' output
Attachment: b37803.diff.gz (application/x-gzip, text), 262.48 KiB.
[11 Jul 2008 10:49]
Mattias Jonsson
Committed a patch (se above): 2673 Mattias Jonsson 2008-07-11 Bug#37402: Mysql cant read partitioned table with capital letter in the name Problem was that ha_partition had HA_FILE_BASED flag set (since it uses a .par file), but after open it uses the first partitions flags, which results in different case handling for create and for open. Solution was to change the underlying partition name so it was consistent. (Only happens when lower_case_table_names = 2, i.e. Mac OS X and storage engines without HA_FILE_BASED, like InnoDB and Memory.) (Recommit after adding rename of check_lowercase_names to get_canonical_filename, and moved it from handler.h to mysql_priv.h) NOTE: if a mixed case name for a partitioned table was created when lower_case_table_name = 2 it should be renamed or dropped before using the updated version (See bug#37402 for more info)
[15 Jul 2008 1:55]
Patrick Crews
Ok to push. Cut down on run time of the test (and the parts suite): Patched: parts.partition_alter2_innodb [ pass ] 113613 parts.partition_alter2_myisam [ pass ] 61631 Spent 2371.812 of 2541 seconds executing testcases Original: parts.partition_alter2_innodb [ pass ] 304049 parts.partition_alter2_myisam [ pass ] 134821 Spent 2670.995 of 3926 seconds executing testcases
[20 Aug 2008 19:47]
Mattias Jonsson
Back to 'In progress'. I will investigate further why innodb takes more resources, and how much memory/disk/cpu that would be expected and acceptable.
[18 Sep 2008 9:30]
Mattias Jonsson
Proposed patch (splitted partition_alter2.inc into two tests)
Attachment: b37803_2.mail.gz (application/x-gzip, text), 122.21 KiB.
[18 Sep 2008 9:34]
Mattias Jonsson
I have done a new patch (but since it affects the biggest result file in the framework i had to add it as a compressed file, since it was too big to mail) The patch just divides the test case into two tests (one for increasing column size and one for decreasing column size) Here is the change set comment: 2735 Mattias Jonsson 2008-09-18 Bug#37803: Test "partition_alter2_innodb" exhausts resources (time and/or memory) It is a very big test and as such it takes a lot of time. Solution is to divide the test in two parts, one for testing increasing column size and one for decreasing size. The innodb branch does extended tests (that myisam is not) due to the $do_pk_tests variabel, that is the reason why the innodb branch takes longer. No increase of memory usage in innodb was found when analyzing, (tested with looping some millions time of create/drop and alter commands) The memory exhaust discovered in the test is due to mysqltest which stores the result in memory (result-file) and this was the biggest result file in the test framework, so by dividing the test into two parts also cuts the memory usage of mysqltest. removed: mysql-test/suite/parts/t/partition_alter2_ndb.test added: mysql-test/suite/parts/inc/partition_alter2_2.inc mysql-test/suite/parts/r/partition_alter2_2_innodb.result mysql-test/suite/parts/r/partition_alter2_2_myisam.result mysql-test/suite/parts/t/partition_alter2_2_innodb.test mysql-test/suite/parts/t/partition_alter2_2_myisam.test renamed: mysql-test/suite/parts/inc/partition_alter2.inc => mysql-test/suite/parts/inc/partition_alter2_1.inc mysql-test/suite/parts/r/partition_alter2_innodb.result => mysql-test/suite/parts/r/partition_alter2_1_innodb.result mysql-test/suite/parts/r/partition_alter2_myisam.result => mysql-test/suite/parts/r/partition_alter2_1_myisam.result mysql-test/suite/parts/t/partition_alter2_innodb.test => mysql-test/suite/parts/t/partition_alter2_1_innodb.test mysql-test/suite/parts/t/partition_alter2_myisam.test => mysql-test/suite/parts/t/partition_alter2_1_myisam.test modified: mysql-test/suite/parts/t/disabled.def mysql-test/suite/parts/inc/partition_alter2_1.inc mysql-test/suite/parts/r/partition_alter2_1_innodb.result mysql-test/suite/parts/r/partition_alter2_1_myisam.result mysql-test/suite/parts/t/partition_alter2_1_innodb.test mysql-test/suite/parts/t/partition_alter2_1_myisam.test
[9 Oct 2008 18:08]
Bugs System
Pushed into 5.1.30 (revid:mattias.jonsson@sun.com-20080918090248-3givvc9xqk9xlp1y) (version source revid:kpettersson@mysql.com-20080925170846-pq6nrweqvm2yfiym) (pib:4)
[15 Oct 2008 15:06]
Paul DuBois
This is actually pushed to 5.1.29, not 5.1.30.
[15 Oct 2008 17:35]
Paul DuBois
Test case changes. No changelog entry needed. Setting report to NDI pending push into 6.0.x.
[17 Oct 2008 16:40]
Bugs System
Pushed into 6.0.8-alpha (revid:mattias.jonsson@sun.com-20080923130815-s8m77qazkowf0oc0) (version source revid:mattias.jonsson@sun.com-20080923130815-s8m77qazkowf0oc0) (pib:5)
[17 Oct 2008 17:40]
Paul DuBois
No changelog entry needed.
[28 Oct 2008 21:05]
Bugs System
Pushed into 5.1.29-ndb-6.2.17 (revid:mattias.jonsson@sun.com-20080918090248-3givvc9xqk9xlp1y) (version source revid:tomas.ulin@sun.com-20081028140209-u4emkk1xphi5tkfb) (pib:5)
[28 Oct 2008 22:24]
Bugs System
Pushed into 5.1.29-ndb-6.3.19 (revid:mattias.jonsson@sun.com-20080918090248-3givvc9xqk9xlp1y) (version source revid:tomas.ulin@sun.com-20081028194045-0353yg8cvd2c7dd1) (pib:5)
[1 Nov 2008 9:49]
Bugs System
Pushed into 5.1.29-ndb-6.4.0 (revid:mattias.jonsson@sun.com-20080918090248-3givvc9xqk9xlp1y) (version source revid:jonas@mysql.com-20081101082305-qx5a1bj0z7i8ueys) (pib:5)