Merge branch 'cassandra-2.0' into cassandra-2.1

This commit is contained in:
Brandon Williams 2015-05-12 14:39:49 -05:00
commit 98eb8ba52d
1 changed files with 2 additions and 0 deletions

View File

@ -448,6 +448,8 @@ public class DatabaseDescriptor
throw new ConfigurationException("The hsha rpc_server_type is not compatible with an rpc_max_threads " +
"setting of 'unlimited'. Please see the comments in cassandra.yaml " +
"for rpc_server_type and rpc_max_threads.");
if (ThriftServer.HSHA.equals(conf.rpc_server_type) && conf.rpc_max_threads > (FBUtilities.getAvailableProcessors() * 2 + 1024))
logger.warn("rpc_max_threads setting of {} may be too high for the hsha server and cause unnecessary thread contention, reducing performance", conf.rpc_max_threads);
/* end point snitch */
if (conf.endpoint_snitch == null)