You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "raboof (via GitHub)" <gi...@apache.org> on 2024/08/19 13:11:46 UTC

[I] "Pool shutdown unexpectedly" [pekko-http]

raboof opened a new issue, #587:
URL: https://github.com/apache/pekko-http/issues/587

   Getting a `Pool shutdown unexpectedly` error when gracefully stopping the actor system. We should probably document what can trigger this in https://pekko.apache.org/docs/pekko-http/current/troubleshooting ?
   ```
   [my-system-pekko.actor.default-dispatcher-23] INFO org.apache.pekko.actor.CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason]
   Aug 19 15:05:14 server generate-stats-start[1196329]: [ERROR] [08/19/2024 15:05:14.645] [my-system-pekko.actor.default-dispatcher-6] [pekko://my-system/system/pool-master] connection pool for Pool(shared->https://purchase.izettle.com:443) has shut down unexpectedly
   Aug 19 15:05:14 server generate-stats-start[1196329]: java.lang.IllegalStateException: Pool shutdown unexpectedly
   Aug 19 15:05:14 server generate-stats-start[1196329]:         at org.apache.pekko.http.impl.engine.client.PoolInterface$Logic.postStop(PoolInterface.scala:224)
   Aug 19 15:05:14 server generate-stats-start[1196329]:         at org.apache.pekko.stream.impl.fusing.GraphInterpreter.finalizeStage(GraphInterpreter.scala:614)
   ```
   AFAICT I've consumed all response entities.
   
   (the code is at https://codeberg.org/eicas/admin-sync/src/branch/main/Zettle.scala - warning, quick hacks ahead :) )


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] "Pool shutdown unexpectedly" on client connection pool [pekko-http]

Posted by "raboof (via GitHub)" <gi...@apache.org>.
raboof closed issue #587: "Pool shutdown unexpectedly" on client connection pool
URL: https://github.com/apache/pekko-http/issues/587


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] "Pool shutdown unexpectedly" on client connection pool [pekko-http]

Posted by "raboof (via GitHub)" <gi...@apache.org>.
raboof commented on issue #587:
URL: https://github.com/apache/pekko-http/issues/587#issuecomment-2297293272

   while true (sorry for the mess, not a great example :laughing: ), in that case I'd expect the script to abort with that `IllegalStateException`, which I don't see.
   
   Adding debug logging, I do see the requests getting completely consumed
   
   After upgrading both Pekko and Pekko HTTP to 1.1.0-M1, however, I can't reproduce the issue anymore. Let's close for now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] "Pool shutdown unexpectedly" [pekko-http]

Posted by "jtjeferreira (via GitHub)" <gi...@apache.org>.
jtjeferreira commented on issue #587:
URL: https://github.com/apache/pekko-http/issues/587#issuecomment-2296974561

   > AFAICT I've consumed all response entities.
   
   In this code https://codeberg.org/eicas/admin-sync/src/branch/main/Zettle.scala#L62-L63 
   
   ```scala
   if (r.status != StatusCodes.OK)
     throw new IllegalStateException(s"Zettle returned status ${r.status}")
   ```
   
   you are not consuming the response, if the status is not OK...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org