Bug #23944 | MysQL Crashes periodically | ||
---|---|---|---|
Submitted: | 3 Nov 2006 14:39 | Modified: | 27 Jan 2008 8:08 |
Reporter: | Kris Buytaert (Candidate Quality Contributor) | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 5.0.27 | OS: | Linux (RHEL 4.4) |
Assigned to: | Jonas Oreland | CPU Architecture: | Any |
Tags: | ndbd crash index join |
[3 Nov 2006 14:39]
Kris Buytaert
[3 Nov 2006 22:18]
Jonas Oreland
Hi, can you upload your schema and some testdata? /Jonas
[6 Nov 2006 10:03]
Jonas Oreland
select in mysqltest-format
Attachment: pp.sql (text/x-sql), 775 bytes.
[6 Nov 2006 10:06]
Jonas Oreland
Hi, I imported dump and ran the following for i in `seq 20`; do eval "mysqltest test < pp.sql &"; done This I run on a 2-node cluster, with only 1 mysqld. But the trace indicates a "local" bug. And I get very high cpu-load from this. However, I get no error... Can you upload your config.ini + my.cnf, so that I can see if I have some setting "wrong" How frequent do you get error? /Jonas
[6 Nov 2006 10:22]
Kris Buytaert
Crash occurs frequently say once every 2-3 minutes under high load. MySQL then restarts.
[6 Nov 2006 10:37]
Jonas Oreland
thx...still no luck Some thing puzzels me a bit * ndb_index_stat_update_freq this is not present in 5.0 * ndb_cache_check_time This is only used together with query cache, right Do you have any query cache settings also ? /Jonas
[6 Nov 2006 10:37]
Jonas Oreland
also, did this problem start to occur suddently? What did you change ? /Jonas
[6 Nov 2006 10:45]
Kris Buytaert
Correct my.cnf file
Attachment: my1.cnf (application/octet-stream, text), 475 bytes.
[6 Nov 2006 10:46]
Kris Buytaert
Buffer configs are in the just uploaded my.cnf file.. which is the one for the mysql nodes. We didn't change anything , except from adding a couple of indexes before the crashes started occuring.
[13 Nov 2006 9:24]
Jonas Oreland
Hi, 1) Could you concider trying a debug build, and giving us core ? 2) You say that you added a few indexes, and then problem started occuring The problem is likely related to this (i.e some meta-data inconsistiency) How did you do with your mysqld's when adding the indexes (e.g singel user mode, stop/start, flush tables etc...) 3) Did you also drop any indexes ? 4) As a work-around, it might be possible to 1) stop mysqld 2) remove all .frm+.ndb -files from mysqld's datadirectory (for ndb-tables) 3) start mysqld, run show tables or similar which will make it recreate the .frm+.ndb files /Jonas
[13 Nov 2006 9:25]
Jonas Oreland
Hi, 1) Could you concider trying a debug build, and giving us core ? 2) You say that you added a few indexes, and then problem started occuring The problem is likely related to this (i.e some meta-data inconsistiency) How did you do with your mysqld's when adding the indexes (e.g singel user mode, stop/start, flush tables etc...) 3) Did you also drop any indexes ? 4) As a work-around, it might be possible to 1) stop mysqld 2) remove all .frm+.ndb -files from mysqld's datadirectory (for ndb-tables) 3) start mysqld, run show tables or similar which will make it recreate the .frm+.ndb files /Jonas
[13 Nov 2006 11:25]
Kris Buytaert
We've stepped the platform to 5.1.12 already.. Not sure if I can downgrade it back to try to reproduce the crashes.