mirror of https://github.com/apache/cassandra
Push connection reset by peer messages to trace
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-16954
This commit is contained in:
parent
ee6cd06afb
commit
f71dfdc375
|
|
@ -34,6 +34,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.channel.*;
|
||||
import io.netty.channel.unix.Errors;
|
||||
import io.netty.handler.codec.MessageToMessageDecoder;
|
||||
import io.netty.handler.codec.MessageToMessageEncoder;
|
||||
|
||||
|
|
@ -774,6 +775,11 @@ public abstract class Message
|
|||
NoSpamLogger.log(logger, NoSpamLogger.Level.WARN, 1, TimeUnit.MINUTES, "Protocol exception with client networking: " + cause.getMessage());
|
||||
}
|
||||
}
|
||||
else if (Throwables.anyCauseMatches(cause, t -> t instanceof Errors.NativeIoException))
|
||||
{
|
||||
ClientMetrics.instance.markUnknownException();
|
||||
logger.trace("Native exception in client networking,", cause);
|
||||
}
|
||||
else
|
||||
{
|
||||
ClientMetrics.instance.markUnknownException();
|
||||
|
|
|
|||
Loading…
Reference in New Issue