Skip to content

Conversation

@Meijuh
Copy link

@Meijuh Meijuh commented Dec 23, 2025

This test shows that by default BlockingAdaptiveExecutor does not block.

The only way to make the executor block is by calling a deprecated constructor at https://github.com/Netflix/concurrency-limits/blob/main/concurrency-limits-core/src/main/java/com/netflix/concurrency/limits/executors/BlockingAdaptiveExecutor.java#L117.

I am not sure that this can be fixed in a backwards compatible way, but the actual result is unexpected as both the Javadoc and class name say there is blocking behavior.

Executing the newly provided JUnit tests gives a RejectedExecutionException instead of blocking the calling thread.

This PR shows the issue described in #154.

This test shows that by default BlockingAdaptiveExecutor does not block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant