Bug #50632 | Purging records from large partitioned INNODB table into ARCHIVE memory error | ||
---|---|---|---|
Submitted: | 26 Jan 2010 17:16 | Modified: | 22 Apr 2011 17:08 |
Reporter: | Glenn Plas | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Archive storage engine | Severity: | S1 (Critical) |
Version: | 5.1.41 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[26 Jan 2010 17:16]
Glenn Plas
[26 Jan 2010 17:19]
Glenn Plas
My appologies for attaching the wrong file. Can someone please remove it. Thanks.
[26 Jan 2010 17:20]
Glenn Plas
Schema of both tables
Attachment: partitioned.txt (text/plain), 54.91 KiB.
[27 Jan 2010 8:17]
Valeriy Kravchuk
Can be related to bug #49161 or even bug #48238. Do you use 32-bit mysqld binary on 64-bit Linux?
[27 Jan 2010 8:40]
Sveta Smirnova
Could you also please decrease txnsize to, say, 50 and examine if problem still exits? Thanks in advance.
[27 Jan 2010 11:52]
Glenn Plas
This master machine is a 32bit linux (kernel + binaries) with mysqld 32 bit version on 64bit capable hardware on the master. There's nothing even remotely 64bit on this box afaik. On the new slave we've installed the correct 64bit kernel/binaries fresh lenny install with the backports package of mysqld (64bit), I have lots of experience with that package. The point of the slave to get promoted to master later on and replace the current machine. So I need mk-table-sync and mk-archive to work properly so I can sleep. I'm attaching the output of the test case script with mk-archiver and MKDEBUG=1 on, its bizar, I see this output now but nothing happens, I've cleanly restarted the DB's a few times already, nothing is wrong, we're running production stuff on this with lots of queries/inserts/s all the time so I can assume the DB is running fine. I noticed when I manually test some of the shown queries that it only shows this output when there is something to do. I don't think I've changed anything , it ran fine yesterday. I've checked the target tables and the records of yesterday are there and work fine (half million). I really figured I contained this enough at this point. I will investigate.
[27 Jan 2010 11:54]
Glenn Plas
Other table, same test (one that worked for sure yesterday)
Attachment: output_txn50.txt (text/plain), 38.14 KiB.
[27 Jan 2010 12:06]
Glenn Plas
As for bug #49161, I don't see a problem it when I run check on the table but this is of course an Archive table, not sure how far check works on them. If this was the case and these files get corrupted somehow, why does it only happen for Archive tables apparantly ? mysql> check table his_Event_syncomict; +-------------------------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +-------------------------------+-------+----------+----------+ | Historics.his_Event_syncomict | check | status | OK | +-------------------------------+-------+----------+----------+ 1 row in set (1.00 sec) Also I don't use innodbbackup at all. My par files dont look broken or are missing, if there is a problem its some logical corruption. As for #48238 I'm not running out of memory during dauly operations, I never have that error. Let me know what you need. Thanks for looking into this.
[3 Feb 2010 7:34]
Sveta Smirnova
Thank you for the feedback. I can not repeat described behavior with test data. Additionally version 5.1.41 is outdated. Please try current version 5.1.43 and if problem still exists provide your configuration file.
[17 Feb 2010 16:11]
Glenn Plas
5.1.41 outtdated ? With all due respect, there is nothing in the changes lists of either 5.1.42 nor 5.1.43 that even remotely connects to this issue, upgrading a production machine to the latest/greatest is not only a lousy practice, I cannot see where this would help me? I studied the changes lists in detail of those 2 more recent versions. Unless some changes which could apply here weren't documented I see no value in upgrading. I would if It could even remotely help me, but there is nothing new in the archive engine since 5.1.41 so why even bother risking my data. I can assure you it is there, I can reproduce at will, bring the DB down in the process. the last restart I did on this DB was the day I logged this bug. I should be safe to assume it is stable. Only when I start hitting archive tables as described it becomes unstable. Anyway, I hope I did my duty and reported a severe problem, I'm seriously considering a migration away from mysql, this is the 10th bug or so I've been hitting in the last year... I willing to bet that you will see this one return in the near future.
[17 Feb 2010 18:23]
MySQL Verification Team
actually I can confirm archive in general is pretty buggy in 5.1.41. My random testcase "bug47012.c" on bug #47012 still proves that in 5.1.43. There are memory errors and choices made depending on random values. Note, this is not needing an upgrade to see this issue. I'm guessing the table cache gets corrupted, and FLUSH TABLES might either crash or remedy the situation....
[6 Apr 2010 12:21]
Glenn Plas
Hi Shane, Thanks for what is probably the most useful reaction I got on MY problem. I'm very sure there is something up with the ARCHIVE stuff which I can reproduce in my sleep by now. I've been hitting problem after problem with mysql, Innodb just keeps eating disk space, "show triggers from 'schema'" which takes forever and in the mean time locks all my tables. It just doesn't gets committed to my brain anymore why things like a simple information_schema query can destabelize a DB that otherwise runs fine for weeks if not touched. DB Start-ups are such a pain for me, I have 700 concurent connections at all times. When I start my db up I cannot -at all- start all the client threads up at the same time, all they do is simple but a lot of inserts on tables (I'm talking 33 bytes per record). Whenever I restart the database it's hell to pay, it takes me half an hour/hour to get them all running and once they do they work fine. Everything hangs on OPEN TABLES or CLOSE TABLES etc. So it's a diesel sort of speak but that might still be a compliment compaired. Now really, when one issues "show tables from 'schema'" and it takes like 30 minutes and locks everything else in the mean time, how useful is this DB then? I'm migrating to MariaDB now and hoping their fixes will help me. I can't look back here. I used to really love MySql but I want a divorce now the sooner the better. What bothers me even more is that whenever I hit a problem, I search the bug db a bit and usually I find a bugreport opened somewhere in 2003 and fixed in a version way above me. It just makes me cry. How ignorant I was thinking this one would be easy to reproduce and fast to fix. some examples: bug #19588 bug #1341 I came to the point that I don't care anymore what happens with this bugreport, I think I did what I had to do but as it is, it doesn't solve my real world issue I have now. Thanks anyone that put effort in this, I do appreciate it but I'm far too desillusioned in the product itself. Feel free to close this and live hapilly ever after.
[6 Apr 2010 12:29]
MySQL Verification Team
could still be a duplicate of bug #51252
[6 Apr 2010 12:37]
Glenn Plas
It could very much be a duplicate of that one actually .... I will keep an eye on it, as it stands, ARCHIVE isn't an option anymore for us. I'll have to select another engine to store historical data. Too bad because partitioned archive tables go very fast.
[22 Apr 2011 17:08]
Valeriy Kravchuk
Let's consider this a duplicate of bug #51252 for now (that bug is not fixed yet anyway...)