Re: get_slice sometimes returns previous result on php

2010-08-31 Thread Juho Mäkinen
I've resolved this bug to be within my own php client wrapper and thus not in Cassandra (great to know :). The bug was that upon TException from get_slice the client code didn't correctly close the socket but instead kept using it. This resulted that the timeouted response was eventually delivered

Re: get_slice sometimes returns previous result on php

2010-08-30 Thread Juho Mäkinen
I'm not using connection poolin where the same tcp socket is used between different php requests. I open a new thrift connection with new socket to the node and I use the node through the request and I close it after. The get_slice requests are all happening in the same request, so something odd ha

Re: get_slice sometimes returns previous result on php

2010-08-30 Thread Benjamin Black
On Mon, Aug 30, 2010 at 6:05 AM, Juho Mäkinen wrote: > The application is using the > same cassandra thrift connection (it doesn't close it in between) and > everything is happening inside same php process. > This is why you are seeing this problem (and is specific to connection reuse in certain

get_slice sometimes returns previous result on php

2010-08-30 Thread Juho Mäkinen
I've ran into a strange bug where get_slice returns the result from previous query. My application iterates over a set of columns inside a supercolumn and for some reason it sometimes (quite rarely but often enough that it shows up) the results gets "shifted" around so that the application gets the