Skip to content

Netty decode exception on Cassandra 5.0.x startup #555

Open
@emerkle826

Description

@emerkle826

This isn't easily reproducible, but sometimes there is an decoder exception on startup:

WARN  [epollEventLoopGroup-5-2] 2024-10-23 06:09:02,056 AbstractChannelHandlerContext.java:355 - An exception 'java.lang.IllegalArgumentException: Unsupported socket address type: class io.netty.channel.unix.DomainSocketAddress' [enable DEBUG level for full stacktrace] was thrown by a user handler's exceptionCaught() method while handling the following exception:
io.netty.handler.codec.DecoderException: java.lang.IllegalArgumentException: Unsupported socket address type: class io.netty.channel.unix.DomainSocketAddress
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:499)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
        at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800)
        at io.netty.channel.epoll.EpollDomainSocketChannel$EpollDomainUnsafe.epollInReady(EpollDomainSocketChannel.java:140)
        at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:509)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:407)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.IllegalArgumentException: Unsupported socket address type: class io.netty.channel.unix.DomainSocketAddress
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)
        at org.apache.cassandra.config.SubnetGroups.contains(SubnetGroups.java:58)
        at org.apache.cassandra.transport.ExceptionHandlers.getUnexpectedExceptionHandler(ExceptionHandlers.java:152)
        at org.apache.cassandra.transport.Dispatcher.processRequest(Dispatcher.java:444)
        at org.apache.cassandra.transport.UnixSocketServer50x$PipelineChannelInitializer.decode(UnixSocketServer50x.java:288)
        at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
        ... 16 common frames omitted

This is possibly limited to Cassandra 5.0.x, but not sure at the moment. Please update the ticket if it is seen for other versions.

┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: MAPI-75

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions