Bug #9538

APC Backend test fails (flushRemovesAllCacheEntries)

Added by Robert Lemke almost 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-08-31
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Cache
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 12
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

On my machine the following test fails:

Failure in flushRemovesAllCacheEntries
ApcBackendTest.php:210
BackendAPCTest1 Failed asserting that <boolean:true> is false.

Related issues

related to TYPO3.Flow - Task #4855: Investigate APC slam problem Closed 2009-10-02

Associated revisions

Revision 01765ad5
Added by Robert Lemke almost 5 years ago

[~TASK] FLOW3 (Cache): Fixed a failing APC backend test

One test was failing, probably due to an old APC version used (see #9538).
After upgrading to a more recent version of APC (3.1.5-dev) this other
tests failed due to the cache slam prevention mechanism.

Since that cannot be disabled (currently) via ini_set(), these tests
are now skipped if apc.slam_defense is set to 1.

Relates to: #4855
Resolves: #9538

Change-Id: I82577d149aebb608b4cb14d7cdb76422ce41d09a

History

#1 Updated by Karsten Dambekalns almost 5 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns

#2 Updated by Robert Lemke almost 5 years ago

APC Version 3.1.3p1
MMAP Support Enabled
MMAP File Mask /tmp/apc.5p5pH2
Locking type File Locks
Revision $Revision: 286798 $
Build Date Jun 17 2010 15:10:45

#3 Updated by Karsten Dambekalns almost 5 years ago

Please try with 3.1.4 or newer.

#4 Updated by Robert Lemke almost 5 years ago

With 3.1.5-dev the mentioned error is gone.

However, with the default php.ini settings I now get:

59 Error in itIsPossibleToOverwriteAnEntryInTheCache 
/opt/local/apache2/htdocs/Development/FLOW3/Distributions/Base/Packages/Framework/FLOW3/Classes/Cache/Backend/ApcBackend.php:276
Warning: apc_store() [<a href='function.apc-store'>function.apc-store</a>]: Potential cache slam averted for key 'FLOW3_e9f0c391f026tag_%APCBE%' in /opt/local/apache2/htdocs/Development/FLOW3/Distributions/Base/Packages/Framework/FLOW3/Classes/Cache/Backend/ApcBackend.php line 276

Error in flushRemovesAllCacheEntries 
/opt/local/apache2/htdocs/Development/FLOW3/Distributions/Base/Packages/Framework/FLOW3/Classes/Cache/Backend/ApcBackend.php:276
Warning: apc_store() [<a href='function.apc-store'>function.apc-store</a>]: Potential cache slam averted for key 'FLOW3_e9f0c391f026tag_%APCBE%' in /opt/local/apache2/htdocs/Development/FLOW3/Distributions/Base/Packages/Framework/FLOW3/Classes/Cache/Backend/ApcBackend.php line 276

#5 Updated by Robert Lemke almost 5 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF