Zend Framework

Zend_Cache_Backend_Memcached - getFillingPercentage fails if one memcache server is down

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Cache
  • Labels:
    None

Description

When using Zend_Cache_Backend_TwoLevels and the memcached backend, calls to getFillingPercentage is done.
If using multiple memcached servers and one memcached server is down, the getFillingPercentage throws an exception.
This renders the whole caching mechanism dead...
It should still work as long as some memcached servers are up. The filling percentage stats isn't that important for the functionality.

I propose to just ignore any memcached servers that are down in this call.

Activity

Hide
Marc Bennewitz (private) added a comment -

Thanks for your report.

The added patch only logs if one server failed and throws exception only if all server failed.

Show
Marc Bennewitz (private) added a comment - Thanks for your report. The added patch only logs if one server failed and throws exception only if all server failed.
Hide
Marc Bennewitz (private) added a comment -

fixed in r20588 (trunk) & r20589 (1.10 branch)

-> tests: After adding a not existing memcached server there are some more failed tests. I'm creating a new issue for it.

Show
Marc Bennewitz (private) added a comment - fixed in r20588 (trunk) & r20589 (1.10 branch) -> tests: After adding a not existing memcached server there are some more failed tests. I'm creating a new issue for it.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: