mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-1.2' into trunk
This commit is contained in:
commit
8b410078a4
|
|
@ -336,7 +336,7 @@
|
|||
<license name="The Apache Software License, Version 2.0" url="http://www.apache.org/licenses/LICENSE-2.0.txt"/>
|
||||
<scm connection="${scm.connection}" developerConnection="${scm.developerConnection}" url="${scm.url}"/>
|
||||
<dependencyManagement>
|
||||
<dependency groupId="org.xerial.snappy" artifactId="snappy-java" version="1.0.4.1"/>
|
||||
<dependency groupId="org.xerial.snappy" artifactId="snappy-java" version="1.0.5"/>
|
||||
<dependency groupId="net.jpountz.lz4" artifactId="lz4" version="1.1.0"/>
|
||||
<dependency groupId="com.ning" artifactId="compress-lzf" version="0.8.4"/>
|
||||
<dependency groupId="com.google.guava" artifactId="guava" version="13.0.1"/>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
package org.apache.cassandra.transport;
|
||||
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor;
|
||||
|
|
@ -33,7 +33,7 @@ public class RequestThreadPoolExecutor extends DebuggableThreadPoolExecutor
|
|||
super(DatabaseDescriptor.getNativeTransportMinThreads(),
|
||||
DatabaseDescriptor.getNativeTransportMaxThreads(),
|
||||
CORE_THREAD_TIMEOUT_SEC, TimeUnit.SECONDS,
|
||||
new ArrayBlockingQueue(32), // Seems to help smooth latency compared to SynchronousQueue.
|
||||
new LinkedBlockingQueue<Runnable>(32), // Seems to help smooth latency compared to SynchronousQueue.
|
||||
new NamedThreadFactory("Native-Transport-Requests"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue