Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.6.2
-
Fix Version/s: 1.10.2
-
Component/s: Zend_Db_Table
-
Labels:None
-
Fix Version Priority:Should Have
Description
Fatal error: Uncaught exception 'Zend_Db_Table_Exception' with message 'Failed saving metadata to metadataCache' in /var/www/ZENDIR/Zend/Db/Table/Abstract.php:635 Stack trace: #0 /var/www/ZENDIR/Zend/Db/Table/Abstract.php(540): Zend_Db_Table_Abstract->_setupMetadata() #1 /var/www/ZENDIR/Zend/Db/Table/Abstract.php(268): Zend_Db_Table_Abstract->_setup() #2 /var/www/prcms/application/Initializer.php(155): Zend_Db_Table_Abstract->__construct() #3 /var/www/prcms/application/Initializer.php(55): Initializer->initSite() #4 /var/www/prcms/application/bootstrap.php(31): Initializer->__construct('testing') #5 /var/www/prcms/public/index.php(2): require('/var/www/prcms/...') #6 {main} thrown in /var/www/ZENDIR/Zend/Db/Table/Abstract.php on line 635
ENV:
1) Linux lamp 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux
2) apache-2.2.6
3) php-5.2.3
4) memcached-1.2.4 (should also affect latest stable version)
5) ZendFramework: 1.6.2 (after checked the latest trunk code, the problem hasnot fixed yet)
Our system use memcached as the cache storage, the connection is persistent. This bug hasnot occured under non-persistent Memcached circumstance
So the description below under persistent connection. (<persistent>1</persistent>)
After restart the Memcached, function save frequently returns false;
Zend/Db/Table/Abstract.php
if (null !== $this->_metadataCache && !$this->_metadataCache->save($metadata, $cacheId)) {
/**
* @see Zend_Db_Table_Exception
*/
require_once 'Zend/Db/Table/Exception.php';
throw new Zend_Db_Table_Exception('Failed saving metadata to metadataCache');
}
So if $this->_metadataCache->save($metadata, $cacheId)) return false, then the exception threw
Agree.
This is not a crit error for Zend_Db_Table and need no exception to throw.