-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement fast failure #13
Comments
The load generator should finish the requests and then stop the |
Got it via the Jenkins plugin see
https://ci.webtide.net/job/load-testing/job/jetty_load_test_9.4.x/153/console
I will try to have unit test for that tomorrow
On Wed, 29 Mar 2017 at 10:12 pm, Simone Bordet ***@***.***> wrote:
The load generator should finish the requests and then stop the HttpClient
.
How do you reproduce this issue ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABNEEB-kTDNjlJXzl0b4Nmw4LEdqAocks5rqjy4gaJpZM4Ms1Mm>
.
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
|
Signed-off-by: olivier lamy <[email protected]>
see #14 |
I'm not sure what is this about. If there is a failure in Jenkins, we should understand why it fails. Adding a fail-fast does not seem the right thing to do, at least not in the context of this issue. Why is the Jenkins test failing ? |
My main concern is we keep trying to send request whereas httpclients has been closed. So if the load has been configured to run 30 minutes and something fail after 5 minutes, the generator keep trying sending requests and all are rejected. See the unit test. This can happen outside of Jenkins. |
@olamy, ok so if there is a failure, the callback passed to IIUC, you want that on failure we exit the if (lastIteration || ranEnough) {
break;
} into if (lastIteration || ranEnough || process.isCompletedExceptionally()) {
break;
} WDYT ? |
@sbordet |
@olamy not sure we want to cover such case... this library is a load generator, and if the server goes down we don't really measure anything, so I would leave that case out. |
@sbordet agree this make sense. So I will merge the pr as it (after conflict merge) |
Signed-off-by: olivier lamy <[email protected]>
Signed-off-by: olivier lamy <[email protected]>
Signed-off-by: olivier lamy <[email protected]>
Signed-off-by: olivier lamy <[email protected]>
Signed-off-by: olivier lamy <[email protected]>
merged |
The generator doesn't fail fast and keep trying to send requests whereas httpclients has been stopped.
From logs
First error
Then the loadgenerator keep trying to send requests which fail:
The text was updated successfully, but these errors were encountered: