[ 
https://issues.apache.org/jira/browse/CASSANDRA-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12886965#action_12886965
 ] 

Nate McCall commented on CASSANDRA-475:
---------------------------------------

TFramedTransport maxLength is just a frame buffer size. It defaults to 2^31-1 
in the latest thrift. Im not sure tweaking that buys us much given the 
following. 

TBinaryProtocol.readLength is what needs to be set. *NOTE*: The value provided 
here will effectively be the max column size (there is no overhead due to 
thrift's delimitation granularity). 

This should be configurable with a sane default. How about 
thrift_max_message_length with a default of 1 (in MB). (This is the default 
max_packet_size in mysql, so might be easier to grok if we match that). 




> sending random data crashes thrift service
> ------------------------------------------
>
>                 Key: CASSANDRA-475
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-475
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Eric Evans
>            Assignee: Nate McCall
>             Fix For: 0.7
>
>
> Use dd if=/dev/urandom count=1 | nc $host 9160 as a handy recipe for shutting 
> a cassandra instance down. 
> Thrift has spoken (see THRIFT-601), but "Don't Do That" is probably an 
> insufficient answer for our users. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to