Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warmup throws IllegalArgumentException in case no permits are availab…
…le (#181) This fixes a regression that comes from #171, from 1.0.1 version: since the pool warmup method allows to be called at anytime, then if no more permits are available from the allocation strategy, the Flux.merge method is then called with a mergeConcurrencypameter that is set to 0, causing the following exception: maxConcurrency > 0 required but it was 0 java.lang.IllegalArgumentException: maxConcurrency > 0 required but it was 0 at reactor.core.publisher.FluxFlatMap.<init>(FluxFlatMap.java:74) at reactor.core.publisher.Flux.merge(Flux.java:1406) at reactor.core.publisher.Flux.merge(Flux.java:1375) Added a check in warmup to immediately return in case no permits are available. Also added a test case. Fixes #180
- Loading branch information