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

Eric Evans commented on CASSANDRA-569:
--------------------------------------

I'd suggest set_option(<option>, <value>) for the thrift method, with an option 
name of "rpc timeout", which seems most consistent with what's already there, 
(see get_string_property and its property names, i.e. "config file", "cluster 
name", "token map").

Also, we should probably maintain DatabaseDescriptor's scope as that of static 
configuration access and move the threadlocal into StorageProxy with a 
getLocalRpcTimeout() method that can fall back to 
DatabaseDescriptor.getRpcTimeout() if no local one has been set.

How does that sound?

> Add Thrift API to set per-connection settings
> ---------------------------------------------
>
>                 Key: CASSANDRA-569
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-569
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Paul Querna
>         Attachments: CASSANDRA-569.patch
>
>
> For thrift API, let you set configuration options per-connection.  These 
> would be stored thread-local on the server, and when a thrift connection 
> dies, they would be reset.
> An example use case is setting the timeout for requests on a per-connection 
> basis.

-- 
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