Set stream ID on response for non-Exception Throwables

Patch by Tyler Hobbs; reviewed by Aleksey Yeschenko for CASSANDRA-7470
This commit is contained in:
Tyler Hobbs 2014-07-10 16:11:20 -05:00
parent 5a658be5ed
commit 0d90b03a30
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
1.2.19
* Set correct stream ID on responses when non-Exception Throwables
are thrown while handling native protocol messages (CASSANDRA-7470)
1.2.18
* Support Thrift tables clustering columns on CqlPagingInputFormat (CASSANDRA-7445)
* Fix compilation with java 6 broke by CASSANDRA-7147

View File

@ -293,7 +293,7 @@ public abstract class Message
ctx.getChannel().write(response);
}
catch (Exception ex)
catch (Throwable ex)
{
// Don't let the exception propagate to exceptionCaught() if we can help it so that we can assign the right streamID.
ctx.getChannel().write(ErrorMessage.fromException(ex).setStreamId(request.getStreamId()));