belliottsmith commented on code in PR #4936:
URL: https://github.com/apache/cassandra/pull/4936#discussion_r3576797115
##########
src/java/org/apache/cassandra/transport/ExceptionHandlers.java:
##########
@@ -76,7 +76,9 @@ public void exceptionCaught(final ChannelHandlerContext ctx,
Throwable cause)
if (ctx.channel().isOpen())
{
Predicate<Throwable> handler =
getUnexpectedExceptionHandler(ctx.channel(), false);
- ErrorMessage errorMessage = ErrorMessage.fromException(cause,
handler);
+ // No request in scope at the channel level; a
WrappedException cause carries the frame's stream id
+ // and overrides this 0 fallback, otherwise the channel is
torn down for fatal errors.
+ ErrorMessage errorMessage = ErrorMessage.fromException(cause,
0, handler);
Review Comment:
I would probably not use a valid streamId as a placeholder you intend to
overwrite later
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]