question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WARN KQueueEventLoop - events[[1, 88, -1]]=[[1, 88, -1], {}] had no channel!

See original GitHub issue

Expected behavior

No warning 2019-02-06 23:05:16.068 [KQueueEventLoopGroup-2-2] WARN i.n.channel.kqueue.KQueueEventLoop - events[[1, 88, -1]]=[[1, 88, -1], {}] had no channel!

Actual behavior

Unexpected warning when client application kill -9 or reset peer 2019-02-06 23:05:16.068 [KQueueEventLoopGroup-2-2] WARN i.n.channel.kqueue.KQueueEventLoop - events[[1, 88, -1]]=[[1, 88, -1], {}] had no channel!

Not received reset peer exception in exceptionCaught(ChannelHandlerContext ctx, Throwable cause) when interrupt client socket

Steps to reproduce

Run snippet code below and kill client

Minimal yet complete reproducer code (or URL to code)

public class ClientKQueue {

public static void main(String[] args) throws Exception {
    Bootstrap clientBootstrap = new Bootstrap()
        .channel(KQueueSocketChannel.class).group(new KQueueEventLoopGroup())
        .handler(new ChannelInboundHandlerAdapter());
    Channel channel = clientBootstrap.connect("localhost", 8080).awaitUninterruptibly().channel();

    channel.closeFuture().awaitUninterruptibly();
}

}

public class ServerKQueue {

public static void main(String[] args) {
    ServerBootstrap serverBootstrap = new ServerBootstrap()
        .channel(KQueueServerSocketChannel.class).group(new KQueueEventLoopGroup())
        .childHandler(new ChannelInitializer() {

            @Override
            protected void initChannel(Channel ch) throws Exception {
                ch.pipeline()
                    .addLast(new ChannelInboundHandlerAdapter() {

                        @Override
                        public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
                            System.out.println(cause.getMessage());
                        }
                    });
            }
        });

    Channel channel = serverBootstrap.bind(8080).awaitUninterruptibly().channel();
    channel.closeFuture().awaitUninterruptibly();
}

}

Netty version

4.1.33

JVM version (e.g. java -version)

java version “1.8.0_181” Java™ SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)

OS version (e.g. uname -a)

18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
normanmaurercommented, Feb 22, 2019

@kachayev ups yes… let me remove.

0reactions
amizurovcommented, Feb 24, 2019

@normanmaurer Thanks, looks good. No more WARN messages on my side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KQueueEventLoop xref - Netty
intValue(), ch); 109 // We either expect to have no Channel in the map with the same FD or that the FD of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found