cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Evans (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-569) Add Thrift API to set per-connection settings
Date Tue, 01 Dec 2009 19:39:20 GMT

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


Mime
View raw message