Bug #16708 | MySQL hangs up when UPDATE a table | ||
---|---|---|---|
Submitted: | 22 Jan 2006 14:34 | Modified: | 9 Mar 2006 8:44 |
Reporter: | Sungsoo Kim | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.16 and 4.1.12 | OS: | Linux (CentOS 4.2) |
Assigned to: | CPU Architecture: | Any |
[22 Jan 2006 14:34]
Sungsoo Kim
[22 Jan 2006 23:00]
Heikki Tuuri
Hi! Please post the full unedited output of SHOW INNODB STATUS\G during the hang. Please post SHOW CREATE TABLE of the involved table. Please post the complete, unedited .err lof if it contains warnings or errors. Regards, Heikki
[23 Jan 2006 0:21]
Hartmut Holzgraefe
can you please also add the output of SHOW VARIABLES and of SHOW STATUS before and after such a hanging query?
[2 Feb 2006 13:52]
Valeriy Kravchuk
Please, upload also a complete error log, as Heikki asked you. As I understood, you have the same problem with 4.1.16 also, aren't you?
[4 Feb 2006 2:51]
Sungsoo Kim
There are no error messages concerned with this problem in the log file. Anyway I included tail part of mysqld.log file. As you can see, it has no messages since Jan 27, 2006. Recently I tested and submitted the error result on Feb 1st. So mysqld did not generate any error message. In the view point of mysqld it might not be an error because the hang-up will be released after serveral minutes. This problem occurred in 4.1.12 and 4.1.16. Current running version is 4.1.16. I have tested in the two version, so other version may have the same problem. I could have missed a very important fact. When MySQL 4.0.22 was running, "ProductInfo" table was updated from time to time, but now it is updated every weekend. I changed the PHP code in the web site not to use SQL_CACHE when reading ProductInfo table, and tested if the same problem still exists. I cannot experience the same problem any more. When mysqld flush the cached memeory once the table is updated, does it takes so long time over 5 minutes? --------------------- 060126 11:05:08 [ERROR] /usr/sbin/mysqld: Can't open file: 'KeywordSearchCache_113240.MYI' (errno: 145) 060126 11:05:08 [Warning] Checking table: './SearchCache/KeywordSearchCache_113240' 060127 1:22:15 [ERROR] /usr/sbin/mysqld: Can't open file: 'KeywordSearchCache_114370.MYI' (errno: 145) 060127 1:22:15 [Warning] Checking table: './SearchCache/KeywordSearchCache_114370'
[7 Feb 2006 14:45]
Valeriy Kravchuk
Thank you for the additional information. > I changed the PHP code in the web site not to use SQL_CACHE when > reading ProductInfo table, and tested if the same problem still exists. > I cannot experience the same problem any more. So, the original problem reported is solved by removing SQL_CACHE, right? > When mysqld flush the cached memeory once the table is updated, does it > takes so long time over 5 minutes? It depends on cache size and hardware. In your case (query_cache_size =1073741824) query cache is quite large. As for the following messages in the error log: 060126 11:05:08 [ERROR] /usr/sbin/mysqld: Can't open file: 'KeywordSearchCache_113240.MYI' (errno: 145) 060126 11:05:08 [Warning] Checking table: './SearchCache/KeywordSearchCache_113240' 060127 1:22:15 [ERROR] /usr/sbin/mysqld: Can't open file: 'KeywordSearchCache_114370.MYI' (errno: 145) 060127 1:22:15 [Warning] Checking table: './SearchCache/KeywordSearchCache_114370' It is a different problem, possibly already fixed. Do you have FULLTEXT indexes on that your tables (KeywordSearchCache_113240)?
[8 Feb 2006 16:12]
Sungsoo Kim
Thank you for your prompt reply! > So, the original problem reported is solved by removing SQL_CACHE, right? Yes > It depends on cache size and hardware. In your case query_cache_size=1073741824) query cache is quite large. I can understand and I will reduce the query_cache_size. > It is a different problem, possibly already fixed. Do you have FULLTEXT indexes on that your tables (KeywordSearchCache_113240)? It is quite different problem. But the table has no FULLTEXT index.
[9 Feb 2006 8:44]
Valeriy Kravchuk
Please, reopen this bug report when you'll have similar hang after the changes. Send the SHOW CREATE TABLE results for ProductInfo table then. I also recommend you to upgrade to 4.1.18 already available, expecially if you have a multicolumn primary key and the first columns from it were used in WHERE clause. This is what seems the case for me from the original description.
[10 Mar 2006 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".