# Pool with Resizer - gracefulStop timeout

**URL:** <https://discuss.akka.io/t/pool-with-resizer-gracefulstop-timeout/754>\
**Category:** Akka Libraries\
**Created:** [April 18, 2018, 5:15pm UTC](https://discuss.akka.io/t/pool-with-resizer-gracefulstop-timeout/754 "2018-04-18T17:15:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkolman](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kkolman](https://discuss.akka.io/u/kkolman)\
**Post date:** [April 18, 2018, 5:15pm UTC](https://discuss.akka.io/t/pool-with-resizer-gracefulstop-timeout/754/1 "2018-04-18T17:15:19Z")

</div>

Hi everyone !

Perfoming a _gracefulStop_ on a RoundRobinPool **with** a DefaultResizer seems to always end with timeout.  
Perfoming a _gracefulStop_ on a RoundRobinPool **without** a DefaultResizer is ok.

```auto
Pool pool1 = new RoundRobinPool(24);
Pool pool2 = new RoundRobinPool(24).withResizer(new DefaultResizer(16, 32));

actor1 = ...
actor2 = ...

// finishes
PatternsCS.gracefulStop(actor1, timeout, new Broadcast(PoisonPill.getInstance()));
// times out
PatternsCS.gracefulStop(actor2, timeout, new Broadcast(PoisonPill.getInstance()));

```

Is this intended/expected ?

I understand why it is intended for Groups as explained here [https://github.com/akka/akka/issues/17340](https://github.com/akka/akka/issues/17340)

For my needs i’ll just drop the resizer, but still i’m curious.

---

<div class="post-metadata">

**Author:** ![kkolman](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kkolman](https://discuss.akka.io/u/kkolman)\
**Post date:** [April 19, 2018, 6:59am UTC](https://discuss.akka.io/t/pool-with-resizer-gracefulstop-timeout/754/2 "2018-04-19T06:59:16Z")

</div>

Read the docs more thoroughly, this expected behavior:

> Each routee will continue to process its messages as normal, eventually processing the `PoisonPill` . This will cause the routee to stop. After all routees have stopped the router will itself be stopped automatically unless it is a dynamic router, e.g. using a resizer.

as stated in [Routing • Akka Documentation](https://doc.akka.io/docs/akka/2.5/routing.html) _PoisonPill Messages_ section.
