If you go to http://qa.drupal.org/pifr/log/recent to view the log, you get no log entries and:
user warning: Error writing file '/var/shm/mysql/MYRz39G4' (Errcode: 28) query: SELECT pifr_log.log_id AS log_id, pifr_client_pifr_log.client_id AS pifr_client_pifr_log_client_id, pifr_test_pifr_log.test_id AS pifr_test_pifr_log_test_id, pifr_test_pifr_log.type AS pifr_test_pifr_log_type, pifr_test_pifr_log.title AS pifr_test_pifr_log_title, pifr_log.code AS pifr_log_code, pifr_log.timestamp AS pifr_log_timestamp, pifr_log.log_id AS pifr_log_log_id FROM pifr_log pifr_log INNER JOIN pifr_test pifr_test_pifr_log ON pifr_log.test_id = pifr_test_pifr_log.test_id LEFT JOIN pifr_client pifr_client_pifr_log ON pifr_log.client_id = pifr_client_pifr_log.client_id ORDER BY pifr_log_log_id DESC LIMIT 0, 50 in /var/www/qa.drupal.org/htdocs/sites/all/modules/views/includes/view.inc on line 765.
Comments
Comment #1
gerhard killesreiter commentedI guess the query should be optimized a bit. Maybe some judicially placed indices would help.
Comment #2
gerhard killesreiter commentedmysql> explain SELECT pifr_log.log_id AS log_id, pifr_client_pifr_log.client_id AS pifr_client_pifr_log_client_id, pifr_test_pifr_log.test_id AS pifr_test_pifr_log_test_id, pifr_test_pifr_log.type AS pifr_test_pifr_log_type, pifr_test_pifr_log.title AS pifr_test_pifr_log_title, pifr_log.code AS pifr_log_code, pifr_log.timestamp AS pifr_log_timestamp, pifr_log.log_id AS pifr_log_log_id FROM pifr_log pifr_log INNER JOIN pifr_test pifr_test_pifr_log ON pifr_log.test_id = pifr_test_pifr_log.test_id LEFT JOIN pifr_client pifr_client_pifr_log ON pifr_log.client_id = pifr_client_pifr_log.client_id ORDER BY pifr_log_log_id DESC LIMIT 0, 50 ;
+----+-------------+----------------------+--------+---------------+---------+---------+--------------------------------------+-------+---------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+----------------------+--------+---------------+---------+---------+--------------------------------------+-------+---------------------------------+
| 1 | SIMPLE | pifr_test_pifr_log | ALL | PRIMARY | NULL | NULL | NULL | 27205 | Using temporary; Using filesort |
| 1 | SIMPLE | pifr_log | ref | test_id | test_id | 4 | drupal_qa.pifr_test_pifr_log.test_id | 7 | Using where |
| 1 | SIMPLE | pifr_client_pifr_log | eq_ref | PRIMARY | PRIMARY | 4 | drupal_qa.pifr_log.client_id | 1 | Using index |
+----+-------------+----------------------+--------+---------------+---------+---------+--------------------------------------+-------+---------------------------------+
Comment #3
rfayI think we could clean up the logs as well, as they go back all the way to November.
Comment #4
gerhard killesreiter commentedI've no idea which purpose the logs save and won't really meddle with them. If they aren#t needed for all time, the pifr_test moduld should have an expiration mechanism.
Comment #5
Amazon commentedI've gone ahead and disabled the PIFR demo module in case that was responsible. We deployed it to approximately 20 authenticated users on Friday.
My guess is we need some basic maintenance build in.
Does Drupal.org have a central logging solution yet?
Comment #6
david straussDoes the INNER JOIN ever remove rows from the result set? Or is it there simply to gather extra data that is known to be present? If it's the latter, this query is easy to optimize.
Comment #7
gerhard killesreiter commentedno central logging yet, it's on my wishlist.
Comment #8
gerhard killesreiter commentedI've no idea about the purpose of the parts of the query. It is a views query, so it isn't really obvious what the motivation for the parts it.
Comment #9
rfay@Amazon, turning off the demo module did not affect this.
There are lots of other mysql errors of various types in http://qa.drupal.org/admin/reports/dblog
Comment #10
gerhard killesreiter commentedI believe all these errors are related to an overflow of the tmpfs partition
Comment #11
jthorson commentedTriaging