You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by james anderson <ja...@setf.de> on 2010/08/01 09:00:24 UTC

? how to do protocol version negotiation

good morning;

is there somewhere a description of - or code which does, protocol  
version negotiation? particularly client code, across the 0.6/0.7  
transition.

all pointers would be welcome.


Re: ? how to do protocol version negotiation

Posted by james anderson <ja...@setf.de>.
On 2010-08-02, at 02:22 , Jonathan Ellis wrote:

> As far as thrift mode goes, you really have to rely on the user to
> specify the correct version (since connecting with framed mode, to an
> unframed server, can crash it).
>
> In 0.7 framed mode will be the default and I am strongly in favor of
> removing the unframed option entirely in 0.8.

ok. in other words, there is no negotiation protocol.
how is that supposed to work out?

is the plan to eradicate 0.6 servers? (see above.)

>
> On Sun, Aug 1, 2010 at 2:46 PM, james anderson  
> <ja...@setf.de> wrote:
>>
>> On 2010-08-01, at 19:31 , Jonathan Ellis wrote:
>>
>>> use the describe_version thrift api call
>>>
>>
>> in principle, obvious.
>>
>> on the other hand, how does one know whether or not to send the frame
>> header?
>> is there a standard probe one can send?
>> is there a standard .7 server behaviour if no frame was sent?
>> a standard .6 if one was?
>>
>>> On Sun, Aug 1, 2010 at 2:00 AM, james anderson  
>>> <ja...@setf.de>
>>> wrote:
>>>>
>>>> good morning;
>>>>
>>>> is there somewhere a description of - or code which does, protocol
>>>> version
>>>> negotiation? particularly client code, across the 0.6/0.7  
>>>> transition.
>>>>
>>>> all pointers would be welcome.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Jonathan Ellis
>>> Project Chair, Apache Cassandra
>>> co-founder of Riptano, the source for professional Cassandra support
>>> http://riptano.com
>>
>>
>
>
>
> -- 
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support
> http://riptano.com


Re: ? how to do protocol version negotiation

Posted by Jonathan Ellis <jb...@gmail.com>.
As far as thrift mode goes, you really have to rely on the user to
specify the correct version (since connecting with framed mode, to an
unframed server, can crash it).

In 0.7 framed mode will be the default and I am strongly in favor of
removing the unframed option entirely in 0.8.

On Sun, Aug 1, 2010 at 2:46 PM, james anderson <ja...@setf.de> wrote:
>
> On 2010-08-01, at 19:31 , Jonathan Ellis wrote:
>
>> use the describe_version thrift api call
>>
>
> in principle, obvious.
>
> on the other hand, how does one know whether or not to send the frame
> header?
> is there a standard probe one can send?
> is there a standard .7 server behaviour if no frame was sent?
> a standard .6 if one was?
>
>> On Sun, Aug 1, 2010 at 2:00 AM, james anderson <ja...@setf.de>
>> wrote:
>>>
>>> good morning;
>>>
>>> is there somewhere a description of - or code which does, protocol
>>> version
>>> negotiation? particularly client code, across the 0.6/0.7 transition.
>>>
>>> all pointers would be welcome.
>>>
>>>
>>
>>
>>
>> --
>> Jonathan Ellis
>> Project Chair, Apache Cassandra
>> co-founder of Riptano, the source for professional Cassandra support
>> http://riptano.com
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Re: ? how to do protocol version negotiation

Posted by james anderson <ja...@setf.de>.
On 2010-08-01, at 19:31 , Jonathan Ellis wrote:

> use the describe_version thrift api call
>

in principle, obvious.

on the other hand, how does one know whether or not to send the frame  
header?
is there a standard probe one can send?
is there a standard .7 server behaviour if no frame was sent?
a standard .6 if one was?

> On Sun, Aug 1, 2010 at 2:00 AM, james anderson  
> <ja...@setf.de> wrote:
>> good morning;
>>
>> is there somewhere a description of - or code which does, protocol  
>> version
>> negotiation? particularly client code, across the 0.6/0.7 transition.
>>
>> all pointers would be welcome.
>>
>>
>
>
>
> -- 
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support
> http://riptano.com


Re: ? how to do protocol version negotiation

Posted by Jonathan Ellis <jb...@gmail.com>.
use the describe_version thrift api call

On Sun, Aug 1, 2010 at 2:00 AM, james anderson <ja...@setf.de> wrote:
> good morning;
>
> is there somewhere a description of - or code which does, protocol version
> negotiation? particularly client code, across the 0.6/0.7 transition.
>
> all pointers would be welcome.
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com