Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadGenerator.interrupt() does not work reliably #69

Closed
sbordet opened this issue Mar 22, 2021 · 0 comments
Closed

LoadGenerator.interrupt() does not work reliably #69

sbordet opened this issue Mar 22, 2021 · 0 comments

Comments

@sbordet
Copy link
Member

sbordet commented Mar 22, 2021

Calling LoadGenerator.interrupt() does interrupt the load generation, but it may return a CompletableFuture that is not exceptionally completed due to the interruption.

This is because the requests sent prior the interruption may be already completed, so CompletableFuture.anyOf(allResults, anyFailure) may return the succeeded allResults rather than the failed anyFailure.

A more robust way to complete the CompletableFuture returned from process() is necessary.

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

No branches or pull requests

1 participant