apache / apache/pekko

Address already in use

Open
#3,326 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
1.6k
Forks
211
Avg merge
1d 6h
Merged PRs (30d)
89

Description

Coroner Thread Count starts at 92 in org.apache.pekko.remote.classic.ActorsLeakSpec
[07-11 07:42:18.466] [info] Remoting
[07-11 07:42:18.877] [info] - must not leak actors *** FAILED *** (396 milliseconds)
[07-11 07:42:18.878] [info] java.net.BindException: Address already in use
[07-11 07:42:18.878] [info] at java.base/sun.nio.ch.Net.bind0(Native Method)
[07-11 07:42:18.878] [info] at java.base/sun.nio.ch.Net.bind(Net.java:567)
[07-11 07:42:18.878] [info] at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337)
[07-11 07:42:18.878] [info] at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294)
[07-11 07:42:18.878] [info] at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:148)
[07-11 07:42:18.878] [info] at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:431)
[07-11 07:42:18.878] [info] at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1353)
[07-11 07:42:18.878] [info] at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:500)
[07-11 07:42:18.878] [info] at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:994)
[07-11 07:42:18.878] [info] at io.netty.channel.Channel.bind(Channel.java:302)
[07-11 07:42:18.878] [info] at io.netty.bootstrap.AbstractBootstrap$1.run(AbstractBootstrap.java:381)
[07-11 07:42:18.878] [info] at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:148)
[07-11 07:42:18.878] [info] at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:141)
[07-11 07:42:18.878] [info] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:535)
[07-11 07:42:18.878] [info] at io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:201)
[07-11 07:42:18.878] [info] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1204)
[07-11 07:42:18.878] [info] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[07-11 07:42:18.878] [info] at java.base/java.lang.Thread.run(Thread.java:840)
Coroner Thread Count started at 92, ended at 174, peaked at 183 in org.apache.pekko.remote.classic.ActorsLeakSpec
Coroner Thread Count starts at 181 in org.apache.pekko.remote.Ticket1978SHA1PRNGSpec

Contributor guide

Open the contributing guide

Research direction

Start by running org.apache.pekko.remote.classic.ActorsLeakSpec and inspect the failure around the reported java.net.BindException. Compare its behavior with org.apache.pekko.remote.Ticket1978SHA1PRNGSpec, focusing on the reported Coroner thread counts. Done means the leak test no longer fails with “Address already in use” and the thread-count checks remain reliable.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, scala
Domain
distributed-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.