Opened 7 years ago

Closed 4 years ago

#6463 closed (wontfix)

Document that cmemcache has bug with floats (was: cache.get_many() returns garbage in case of floats (?) using memcached backend)

Reported by: panni@… Owned by: nobody
Component: Core (Cache system) Version: master
Severity: Keywords: cache, memcached, get_many, wrong results
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Memcached backend (using cmemcache 0.91 and libmemcache 1.4.0.rc2):

"ck" key of cache has been set to INTEGER and "ckt" to time.time():

cd = cache.get_many([ck, ckt])
hits, timeout = cd[ck], cd[ckt]
    
print hits, timeout
    
hits = cache.get(ck)
timeout = cache.get(ckt)
    
print hits, timeout

Output:
2 GAÑæ±ò6X.
2 1201326024.84

Change History (5)

comment:1 Changed 7 years ago by panni@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

After some tests I found out that this bug doesn't happen when using python-memcached instead of cmemcache.

comment:2 Changed 7 years ago by Simon Greenhill <dev@…>

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

Ok, so it's a cmemcache bug?

comment:3 Changed 7 years ago by panni@…

Yes, seems like.
I've added this one with a small (temporary) Documentation change in mind - the Docs should mention this, instead of only saying cmemcache is faster than python-memcached.

comment:4 Changed 7 years ago by Simon Greenhill <dev@…>

  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Summary changed from cache.get_many() returns garbage in case of floats (?) using memcached backend to Document that cmemcache has bug with floats (was: cache.get_many() returns garbage in case of floats (?) using memcached backend)
  • Triage Stage changed from Unreviewed to Accepted

Ok. Updating the ticket to reflect this, thanks :)

comment:5 Changed 4 years ago by otherjacob

  • Resolution set to wontfix
  • Status changed from reopened to closed

cmemcache is currently deprecated, and being removed in 1.4

Note: See TracTickets for help on using tickets.
Back to Top