Re: Memcached client getBulk fails

76 views
Skip to first unread message

Konstantin Shushlyamin

unread,
Nov 10, 2012, 5:15:13 AM11/10/12
to haze...@googlegroups.com
It seems it is not an issue, right? ) or maybe my english is not good enough to explain the problem 

any suggestions? workarounds? pls

On Friday, November 2, 2012 3:45:42 PM UTC+2, Konstantin Shushlyamin wrote:

net.spy.memcached.MemcachedClient.getBulk(Collection<String>) sends data in the following format:

get key1 key2 ......... keyN

Hazelcast(2.4) uses com.hazelcast.nio.ascii.SocketTextReader to read the command and fails if the command length > 500byte:

public class SocketTextReader {

............

ByteBuffer commandLine = ByteBuffer.allocate(500);

..........

private void doRead(ByteBuffer bb) {

        while (!commandLineRead && bb.hasRemaining()) {

            byte b = bb.get();

            char c = (char) b;

            if (c == '\n') {

                commandLineRead = true;

            } else if (c != '\r') {

                commandLine.put(b);

            }

        }

..............

}



Fuad Malikov

unread,
Nov 13, 2012, 6:52:37 AM11/13/12
to haze...@googlegroups.com
Hi Konstantin,

Hazelcast memcache protocol implementation is very limited actually. So basically this operation is not implemented yet. Only the basic get/set is implemented.

Regards,

-fuad

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/lU3GTfz60h8J.

To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.

Reply all
Reply to author
Forward
0 new messages