Bug #9538
APC Backend test fails (flushRemovesAllCacheEntries)
| Status: | Resolved | Start date: | 2010-08-31 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Karsten Dambekalns | % Done: | 100% |
|
| Category: | Cache | |||
| Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 12 | |||
| PHP Version: | Complexity: | |||
| Has patch: | FLOW3 version affected: | |||
| Votes: | 0 |
Description
On my machine the following test fails:
Failure in flushRemovesAllCacheEntries ApcBackendTest.php:210 BackendAPCTest1 Failed asserting that <boolean:true> is false.
Associated revisions
[~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
Updated by Karsten Dambekalns over 2 years ago
- Status changed from New to Accepted
- Assignee set to Karsten Dambekalns
Updated by Robert Lemke over 2 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
Updated by Karsten Dambekalns over 2 years ago
Please try with 3.1.4 or newer.
Updated by Robert Lemke over 2 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
Updated by Robert Lemke over 2 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset 01765ad53feeb347256f3e7c1015f3f53b973552.