Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-574

Race condition if connection request succeeds and times out at the same time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4.10
    • 4.4.12
    • HttpCore NIO
    • None

    Description

      [#|2019-04-03T22:23:40.325+0000|SEVERE|glassfish 4.1|org.apache.http.impl.nio.client.InternalHttpAsyncClient|_ThreadID=617;_ThreadName=pool-163-thread-1;_TimeMillis=1554330220325;_LevelValue=1000;|I/O reactor terminated abnormally
      org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally
      at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:356)
      at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
      at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalStateException: Connection must be created by connection manager
      at org.apache.http.impl.nio.client.InternalIODispatch.createConnection(InternalIODispatch.java:56)
      at org.apache.http.impl.nio.client.InternalIODispatch.createConnection(InternalIODispatch.java:39)
      at org.apache.http.impl.nio.reactor.AbstractIODispatch.connected(AbstractIODispatch.java:70)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionCreated(BaseIOReactor.java:248)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:427)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:287)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
      at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)

      thread that timed out

      2019-04-03T22:23:39.000Z
      .... WARNING|glassfish 4.1|com.singularity.ee.controller.beans.analytics.scheduledquery.DefaultScheduledQueryManager|ThreadID=612;_ThreadName=_ejb-thread-pool16;_TimeMillis=1554330219308;_LevelValue=900;|The async task has timed out
      java.util.concurrent.TimeoutException
      at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:106)
      at org.apache.http.impl.nio.client.FutureWrapper.get(FutureWrapper.java:75)

      Making another one since it was most likely not fixed in HTTPCORE-370

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              george.chigrichenko George Chigrichenko
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: