mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-2.1' into cassandra-2.2
This commit is contained in:
commit
f0f9cf232b
|
|
@ -28,6 +28,7 @@
|
|||
* Split consistent range movement flag correction (CASSANDRA-12786)
|
||||
* CompactionTasks now correctly drops sstables out of compaction when not enough disk space is available (CASSANDRA-12979)
|
||||
Merged from 2.1:
|
||||
* Upgrade netty version to fix memory leak with client encryption (CASSANDRA-13114)
|
||||
* Fix paging for DISTINCT queries on partition keys and static columns (CASSANDRA-13017)
|
||||
* Fix race causing infinite loop if Thrift server is stopped before it starts listening (CASSANDRA-12856)
|
||||
* cqlsh copy-from: sort user type fields in csv (CASSANDRA-12959)
|
||||
|
|
|
|||
|
|
@ -407,7 +407,7 @@
|
|||
<dependency groupId="com.addthis.metrics" artifactId="reporter-config3" version="3.0.0" />
|
||||
<dependency groupId="org.mindrot" artifactId="jbcrypt" version="0.3m" />
|
||||
<dependency groupId="io.airlift" artifactId="airline" version="0.6" />
|
||||
<dependency groupId="io.netty" artifactId="netty-all" version="4.0.23.Final" />
|
||||
<dependency groupId="io.netty" artifactId="netty-all" version="4.0.44.Final" />
|
||||
<dependency groupId="com.google.code.findbugs" artifactId="jsr305" version="2.0.2" />
|
||||
<dependency groupId="com.clearspring.analytics" artifactId="stream" version="2.5.2" />
|
||||
<!-- TODO CASSANDRA-9543
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -545,15 +545,19 @@ public abstract class Message
|
|||
public void exceptionCaught(final ChannelHandlerContext ctx, Throwable cause)
|
||||
throws Exception
|
||||
{
|
||||
// Provide error message to client in case channel is still open
|
||||
UnexpectedChannelExceptionHandler handler = new UnexpectedChannelExceptionHandler(ctx.channel(), false);
|
||||
ErrorMessage errorMessage = ErrorMessage.fromException(cause, handler);
|
||||
if (ctx.channel().isOpen())
|
||||
{
|
||||
UnexpectedChannelExceptionHandler handler = new UnexpectedChannelExceptionHandler(ctx.channel(), false);
|
||||
ChannelFuture future = ctx.writeAndFlush(ErrorMessage.fromException(cause, handler));
|
||||
ChannelFuture future = ctx.writeAndFlush(errorMessage);
|
||||
// On protocol exception, close the channel as soon as the message have been sent
|
||||
if (cause instanceof ProtocolException)
|
||||
{
|
||||
future.addListener(new ChannelFutureListener() {
|
||||
public void operationComplete(ChannelFuture future) {
|
||||
future.addListener(new ChannelFutureListener()
|
||||
{
|
||||
public void operationComplete(ChannelFuture future)
|
||||
{
|
||||
ctx.close();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue