[MDEV-2896] LP:605375 - Table corruption with key-cache-segments > 51 Created: 2010-07-14  Updated: 2015-02-02  Resolved: 2012-10-04

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

Type: Bug Priority: Major
Reporter: Philip Stoev (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug605375.xml    

 Description   

In Maria 5.2, the main.ctype_latin1_de test fails when run with key-cache-segments > 51 :

perl mysql-test-run.pl -mysqld=-key-cache-segments=52 main.ctype_latin1_de

main.ctype_latin1_de [ fail ]
Test ended at 2010-07-14 15:01:23

CURRENT_TEST: main.ctype_latin1_de
— /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.result 2010-07-12 17:43:46.149554000 +0300
+++ /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.reject 2010-07-14 15:01:23.744825496 +0300
@@ -139,13 +139,17 @@
a
check table t1;
Table Op Msg_type Msg_text
-test.t1 check status OK
+test.t1 check error Size of indexfile is: 1024 Should be: 2048
+test.t1 check error Corrupt
select * from t1 where a like "�%";
a b
� 1
�a 1
�c 1
�o 1
+Warnings:
+Error 145 Table './test/t1' is marked as crashed and should be repaired
+Error 1194 Table 't1' is marked as crashed and should be repaired
select * from t1 where a like binary "%�%";
a b
� 2

mysqltest: Result length mismatch

The test basically inserts some non-ascii values in a table and then runs CHECK TABLE



 Comments   
Comment by Igor Babaev [ 2010-07-26 ]

Re: [Bug 605375] [NEW] Table corruption with key-cache-segments > 51
Philip Stoev wrote:
> Public bug reported:
>
> In Maria 5.2, the main.ctype_latin1_de test fails when run with key-
> cache-segments > 51 :
>
> perl mysql-test-run.pl -mysqld=-key-cache-segments=52
> main.ctype_latin1_de
>
> main.ctype_latin1_de [ fail ]
> Test ended at 2010-07-14 15:01:23
>
> CURRENT_TEST: main.ctype_latin1_de
> — /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.result 2010-07-12 17:43:46.149554000 +0300
> +++ /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.reject 2010-07-14 15:01:23.744825496 +0300
> @@ -139,13 +139,17 @@
> a
> check table t1;
> Table Op Msg_type Msg_text
> -test.t1 check status OK
> +test.t1 check error Size of indexfile is: 1024 Should be: 2048
> +test.t1 check error Corrupt
> select * from t1 where a like "�%";
> a b
> � 1
> �a 1
> �c 1
> �o 1
> +Warnings:
> +Error 145 Table './test/t1' is marked as crashed and should be repaired
> +Error 1194 Table 't1' is marked as crashed and should be repaired
> select * from t1 where a like binary "%�%";
> a b
> � 2
>
> mysqltest: Result length mismatch
>
> The test basically inserts some non-ascii values in a table and then
> runs CHECK TABLE
>
> ** Affects: maria
> Importance: Undecided
> Status: New
>
>
> ** Tags: cache key segmented
>
Philip,

I failed to reproduce this bug with the current 5.2 tree.

Regards,
Igor.

Comment by Philip Stoev (Inactive) [ 2010-07-27 ]

Re: [Bug 605375] [NEW] Table corruption with key-cache-segments > 51
Hello,

It seems that this bug was fixed by the following push:

Changed by: Sergei Golubchik <sergii@pisem.net>
Changed at: Sat 24 Jul 2010 09:10:03
Branch: 5.2
Revision: 2832

Changed files:

a.. mysys/mf_keycache.c MODIFIED
b.. storage/example/ha_example.cc MODIFIED
c.. storage/xtradb/Makefile.am MODIFIED
Comments:
buildbot detected problems
If you are happy with such a solution, feel free to close the bug. Thank
you.Philip Stoev
----- Original Message -----
From: "Igor Babaev" <igor@askmonty.org>
To: <pstoev@askmonty.org>
Sent: Tuesday, July 27, 2010 1:42 AM
Subject: Re: [Bug 605375] [NEW] Table corruption with key-cache-segments >
51

Philip Stoev wrote:
> Public bug reported:
>
> In Maria 5.2, the main.ctype_latin1_de test fails when run with key-
> cache-segments > 51 :
>
> perl mysql-test-run.pl -mysqld=-key-cache-segments=52
> main.ctype_latin1_de
>
> main.ctype_latin1_de [ fail ]
> Test ended at 2010-07-14 15:01:23
>
> CURRENT_TEST: main.ctype_latin1_de
> — /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.result
> 2010-07-12 17:43:46.149554000 +0300
> +++ /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.reject
> 2010-07-14 15:01:23.744825496 +0300
> @@ -139,13 +139,17 @@
> a
> check table t1;
> Table Op Msg_type Msg_text
> -test.t1 check status OK
> +test.t1 check error Size of indexfile is: 1024 Should
> be: 2048
> +test.t1 check error Corrupt
> select * from t1 where a like "�%";
> a b
> � 1
> �a 1
> �c 1
> �o 1
> +Warnings:
> +Error 145 Table './test/t1' is marked as crashed and should be
> repaired
> +Error 1194 Table 't1' is marked as crashed and should be repaired
> select * from t1 where a like binary "%�%";
> a b
> � 2
>
> mysqltest: Result length mismatch
>
> The test basically inserts some non-ascii values in a table and then
> runs CHECK TABLE
>
> ** Affects: maria
> Importance: Undecided
> Status: New
>
>
> ** Tags: cache key segmented
>
Philip,

I failed to reproduce this bug with the current 5.2 tree.

Regards,
Igor.


Table corruption with key-cache-segments > 51
https://bugs.launchpad.net/bugs/605375
You received this bug notification because you are a direct subscriber
of the bug.

Status in Maria: New

Bug description:
In Maria 5.2, the main.ctype_latin1_de test fails when run with
key-cache-segments > 51 :

perl mysql-test-run.pl -mysqld=-key-cache-segments=52 main.ctype_latin1_de

main.ctype_latin1_de [ fail ]
Test ended at 2010-07-14 15:01:23

CURRENT_TEST: main.ctype_latin1_de
— /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.result
2010-07-12 17:43:46.149554000 +0300
+++ /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.reject
2010-07-14 15:01:23.744825496 +0300
@@ -139,13 +139,17 @@
a
check table t1;
Table Op Msg_type Msg_text
-test.t1 check status OK
+test.t1 check error Size of indexfile is: 1024 Should be:
2048
+test.t1 check error Corrupt
select * from t1 where a like "�%";
a b
� 1
�a 1
�c 1
�o 1
+Warnings:
+Error 145 Table './test/t1' is marked as crashed and should be
repaired
+Error 1194 Table 't1' is marked as crashed and should be repaired
select * from t1 where a like binary "%�%";
a b
� 2

mysqltest: Result length mismatch

The test basically inserts some non-ascii values in a table and then runs
CHECK TABLE

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/maria/+bug/605375/+subscribe

Comment by Igor Babaev [ 2010-07-27 ]

Re: [Bug 605375] [NEW] Table corruption with key-cache-segments > 51
Philip Stoev wrote:
> Hello,
>
> It seems that this bug was fixed by the following push:
>
> Changed by: Sergei Golubchik <sergii@pisem.net>
> Changed at: Sat 24 Jul 2010 09:10:03
> Branch: 5.2
> Revision: 2832
>
> Changed files:
>
> a.. mysys/mf_keycache.c MODIFIED
> b.. storage/example/ha_example.cc MODIFIED
> c.. storage/xtradb/Makefile.am MODIFIED
> Comments:
> buildbot detected problems
> If you are happy with such a solution, feel free to close the bug. Thank
> you.Philip Stoev
I'm ok with Sergei's change, but I don't know how to close the bug
(there is no 'closed' button there).

Regards,
Igor.

> ----- Original Message -----
> From: "Igor Babaev" <igor@askmonty.org>
> To: <pstoev@askmonty.org>
> Sent: Tuesday, July 27, 2010 1:42 AM
> Subject: Re: [Bug 605375] [NEW] Table corruption with key-cache-segments >
> 51
>
>
> Philip Stoev wrote:
>> Public bug reported:
>>
>> In Maria 5.2, the main.ctype_latin1_de test fails when run with key-
>> cache-segments > 51 :
>>
>> perl mysql-test-run.pl -mysqld=-key-cache-segments=52
>> main.ctype_latin1_de
>>
>> main.ctype_latin1_de [ fail ]
>> Test ended at 2010-07-14 15:01:23
>>
>> CURRENT_TEST: main.ctype_latin1_de
>> — /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.result
>> 2010-07-12 17:43:46.149554000 +0300
>> +++ /home/philips/bzr/maria-5.2/mysql-test/r/ctype_latin1_de.reject
>> 2010-07-14 15:01:23.744825496 +0300
>> @@ -139,13 +139,17 @@
>> a
>> check table t1;
>> Table Op Msg_type Msg_text
>> -test.t1 check status OK
>> +test.t1 check error Size of indexfile is: 1024 Should
>> be: 2048
>> +test.t1 check error Corrupt
>> select * from t1 where a like "�%";
>> a b
>> � 1
>> �a 1
>> �c 1
>> �o 1
>> +Warnings:
>> +Error 145 Table './test/t1' is marked as crashed and should be
>> repaired
>> +Error 1194 Table 't1' is marked as crashed and should be repaired
>> select * from t1 where a like binary "%�%";
>> a b
>> � 2
>>
>> mysqltest: Result length mismatch
>>
>> The test basically inserts some non-ascii values in a table and then
>> runs CHECK TABLE
>>
>> ** Affects: maria
>> Importance: Undecided
>> Status: New
>>
>>
>> ** Tags: cache key segmented
>>
> Philip,
>
> I failed to reproduce this bug with the current 5.2 tree.
>
> Regards,
> Igor.
>

Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ]

Launchpad bug id: 605375

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