MySQL Forums
Forum List  »  memcached

NDB Memcache caching policy + external values problems
Posted by: Joshua Gigg
Date: May 14, 2013 05:44AM

I'm attempting to use ndb memcache through a PHP API, and am having real problems doing so.

Can anyone confirm whether these are general issues, or whether it might be my setup (which only uses the config generator on severalnines).

In 7.2.7, using the caching policy crashes memcached when trying to get a value that is in the table, but not the local cache.

In 7.3.1 (latest RC), I no longer have the above problem, but I do have the following problems:
1) Caching policy works, but will return inconsistent data:
string(10) "blablablal"
string(14) "blablablal\r\n\000\000"
string(14) "blablablal\r\n\000\000"
string(10) "blablablal"
2) External Values are generated correctly, but when I try to read them all I get is an empty string
3) Any sort of compression that uses the ndb storage doesn't work. I can see the flags column being set correctly. (Using default demo_table_large).


Regarding no. 2, this is the output I see in memcached (-vvv with debug=true)

Write:

52 - Running task: (conn_listening)
<56 new auto-negotiating client connection
56 - Running task: (conn_new_cmd)
56: going from conn_new_cmd to conn_waiting
56 - Running task: (conn_waiting)
56: going from conn_waiting to conn_read
56 - Running task: (conn_read)
56: going from conn_read to conn_parse_cmd
56 - Running task: (conn_parse_cmd)
56: Client using the ascii protocol
<56 set b:largeValueAt1368531790 0 0 5000
56: going from conn_parse_cmd to conn_nread
56 - Running task: (conn_nread)
56 - Running task: (conn_nread)
Got notify from 56, status 0
>56 STORED
56: going from conn_nread to conn_write
56: going from conn_write to conn_swallow
56: going from conn_swallow to conn_new_cmd
56: going from conn_new_cmd to conn_waiting
56: going from conn_waiting to conn_read




Read:


56 - Running task: (conn_read)
56: going from conn_read to conn_parse_cmd
56 - Running task: (conn_parse_cmd)
<56 get b:largeValueAt1368531790
Got notify from 56, status 0
<56 get b:largeValueAt1368531790
>56 sending key b:largeValueAt1368531790

>56 END
56: going from conn_parse_cmd to conn_mwrite
56: going from conn_mwrite to conn_new_cmd
56: going from conn_new_cmd to conn_waiting
56: going from conn_waiting to conn_read
56 - Running task: (conn_read)
56: going from conn_read to conn_closing
56 - Running task: (conn_closing)
-1: going from conn_closing to conn_immediate_close
-1 - Running task: (conn_immediate_close)
Immediate close of 0x7fc57c0010d0

Options: ReplyQuote


Subject
Views
Written By
Posted
NDB Memcache caching policy + external values problems
3074
May 14, 2013 05:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.