developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 10 years ago

Closed 10 years ago

#1113 closed bug (fixed)

memcached drivers don't give always same results

Reported by: laurentj Owned by:
Priority: highest Milestone: Jelix 1.2 beta
Component: jelix:plugins:cache Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

Results of unit tests on memcache drivers for jKvDb or jCache are not always green. It seems that it depends of the version of the memcached, or if it is a memcache-like server.

Change History (5)

comment:1 Changed 10 years ago by laurentj

It probably depends also of the version of PHP. :-(

comment:2 Changed 10 years ago by laurentj

  • windows, memcached 1.2.4, php 5.2.11, php_memcache 2.2.4-dev:
    • jcache: 8 fails, 1 exception (undefined index getKey l 109)
    • jkvdb: passes
  • windows, memcached 1.2.4, php 5.3.0, php_memcache 2.2.5:
    • jcache: passes
    • jkvdb: passes
  • linux, memcached 1.4.2, php 5.3.2, php_memcache 3.0.4:
    • jcache: 28 fails and 32 exceptions, mainly because of some missing arguments
    • jkvdb: 18 fails and 1 exceptions ([MemcachePool::increment(): Server localhost (tcp 11211, udp 0) failed with: CLIENT_ERROR cannot increment or decrement non-numeric value (0))
  • mac, memcached 1.4.4, php 5.2.6, php_memcache 2.2.5:
    • jcache: passes
    • jkvdb: passes

comment:3 Changed 10 years ago by laurentj

sorry, on mac, it didn't pass... :-(

an other test:

  • linux, memcached 1.2.2, php 5.2.6, php_memcache 3.0.1
    • jcache : passes
    • jkvdb : passes

comment:4 Changed 10 years ago by laurentj

  • Component changed from jelix:kvdb to jelix:plugins:cache

Because of the lack of documentation on 3.0.x series of php_memcache (www.php.net/memcache talk about only about 2.x series), and because php_memcache 3.0 is in beta, Jelix 1.2 won't support these versions.

comment:5 Changed 10 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

in fact, failed test under windows are not about memcache, but about the file driver (in fact, setting 0 as modified time on files is not a good idea, and for php 5.2.11, such files are not "readable", is_readable returns false). So, here are new results:

  • windows, memcached 1.2.4, php 5.2.11, php_memcache 2.2.4-dev:
    • jcache: passes
    • jkvdb: passes
  • windows, memcached 1.2.4, php 5.3.0, php_memcache 2.2.5:
    • jcache: passes
    • jkvdb: passes
  • linux, memcached 1.4.2, php 5.3.2, php_memcache 3.0.4:
    • jcache: not applicable
    • jkvdb: not applicable
  • linux, memcached 1.2.2, php 5.2.6, php_memcache 3.0.1
    • jcache : passes
    • jkvdb : passes
  • mac, memcached 1.4.4, php 5.2.6, php_memcache 2.2.5:
    • jcache: I know it fails but no real results (the MB is dead)
    • jkvdb: I know it fails but no real results (the MB is dead)

We can say that it is ok.

fixed bugs about file drivers and some tests:

Note: See TracTickets for help on using tickets.