GeezerVison is showing github.com — IllegalStateException: complete already on notifyListener / operationComplete · Issue #9669 · netty/netty
IllegalStateException: complete already on notifyListener / operationComplete #9669
Description
Expected behavior
No Exception
Actual behavior
Exception:
java.lang.IllegalStateException: complete already: DefaultPromise@5fb7a4fa(failure: java.util.concurrent.CancellationException)
at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:96)
at io.netty.channel.pool.FixedChannelPool$AcquireListener.operationComplete(FixedChannelPool.java:423)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:502)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:476)
at io.netty.util.concurrent.DefaultPromise.access$000(DefaultPromise.java:33)
at io.netty.util.concurrent.DefaultPromise$1.run(DefaultPromise.java:426)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:333)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
at java.base/java.lang.Thread.run(Thread.java:834)
Steps to reproduce
I have no idea how to reproduce this.
Application has been running for months now without this issue ever occuring.
It could be an edgecase, maybe relating to application shutdown (though there is no clear indication for this).
Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.34.Final
JVM version (e.g. java -version)
openjdk 11.0.2 2019-01-15
OS version (e.g. uname -a)
Linux f59ba83a2109 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 GNU/Linux
Activity
changed the title
[-]IllegalStateException [/-] [+]IllegalStateException: complete already on notifyListener / operationComplete[/+] on Oct 15, 2019normanmaurer commented on Oct 22, 2019
@Loki1985 can you show me how you use the pool in your code ?
romanblachman commented on Jan 5, 2020
@normanmaurer we have the same issue reproducing:
java.lang.IllegalStateException: complete already: DefaultPromise@1724b3c9(failure: java.util.concurrent.CancellationException)
at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:96)
at io.netty.channel.pool.FixedChannelPool$AcquireListener.operationComplete(FixedChannelPool.java:423)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:502)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:476)
at io.netty.util.concurrent.DefaultPromise.access$000(DefaultPromise.java:33)
at io.netty.util.concurrent.DefaultPromise$1.run(DefaultPromise.java:426)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:405)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:906)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:748)```
Pool configuration:
private HttpClient httpClient(WebClientOptions options)
{
BiConsumer<HttpInfos, Throwable> exceptionHandler = WebClientConfiguration::handleIOException;
return HttpClient
.create(ConnectionProvider.fixed("webClientPool", maxConnections))
.doOnError(exceptionHandler, exceptionHandler)
.followRedirect(true)
.secure(spec -> spec.sslContext(getSslContextBuilder(options))
.defaultConfiguration(SslProvider.DefaultConfigurationType.NONE));
}
normanmaurer commented on Jan 9, 2020
romanblachman commented on Jan 9, 2020
reactor-netty-0.8.9.RELEASE.jar
netty-common-4.1.36.Final.jar
added a commit that references this issue
on Aug 14, 2026This issue will close once commit 21dd89e is merged into the '4.2' branch.21dd89e added 2 commits that reference this issue
on Aug 15, 2026This issue will close once commit 0f09e56 is merged into the '4.2' branch.0f09e56 This issue will close once commit e11f66c is merged into the '4.2' branch.e11f66c added a commit that references this issue
on Oct 24, 2026This issue will close once commit a83d62f is merged into the '4.2' branch.a83d62f
Metadata
Metadata
Development
No branches or pull requestsIssue actions