GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IllegalStateException: complete already on notifyListener / operationComplete · Issue #9669 · netty/netty

IllegalStateException: complete already on notifyListener / operationComplete #9669

New issue
Copy link
New issue
Copy link
Closed
#17287
Closed
IllegalStateException: complete already on notifyListener / operationComplete#9669
#17287
Copy link

Description

@dckone
dckone
opened on Oct 15, 2019
Issue body actions

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

  1. dckone
    changed the title [-]IllegalStateException [/-] [+]IllegalStateException: complete already on notifyListener / operationComplete[/+] on Oct 15, 2019
  2. normanmaurer commented on Oct 22, 2019

    @normanmaurer
    normanmaurer
    on Oct 22, 2019
    Member
    More actions

    @Loki1985 can you show me how you use the pool in your code ?

  3. romanblachman commented on Jan 5, 2020

    @romanblachman
    romanblachman
    on Jan 5, 2020
    More actions

    @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));
        }
    
  4. normanmaurer commented on Jan 9, 2020

    @normanmaurer
    normanmaurer
    on Jan 9, 2020
    Member
    More actions

    @romanblachman which version ?

  5. romanblachman commented on Jan 9, 2020

    @romanblachman
    romanblachman
    on Jan 9, 2020
    More actions

    reactor-netty-0.8.9.RELEASE.jar
    netty-common-4.1.36.Final.jar

  6. normanmaurer
    added a commit that references this issue on Aug 14, 2026

    Release channel when FixedChannelPool acquire is cancelled (#17287)

    This issue will close once commit 21dd89e is merged into the '4.2' branch.
    21dd89e
  7. normanmaurer
    closed this as completedin #17287on Aug 14, 2026
  8. normanmaurer
    added 2 commits that reference this issue on Aug 15, 2026

    Release channel when FixedChannelPool acquire is cancelled (#17287) (#…

    This issue will close once commit 0f09e56 is merged into the '4.2' branch.
    0f09e56

    Release channel when FixedChannelPool acquire is cancelled (#17287) (#…

    This issue will close once commit e11f66c is merged into the '4.2' branch.
    e11f66c
  9. lltopk
    added a commit that references this issue on Oct 24, 2026

    Release channel when FixedChannelPool acquire is cancelled (netty#17287…

    This issue will close once commit a83d62f is merged into the '4.2' branch.
    a83d62f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.