-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failing simulations are blocked instead of terminated with gatling 3.10.1 #4495
Comments
Please provide a reproducer. The following simulation works as expected for me: import io.gatling.javaapi.core.*;
import io.gatling.javaapi.http.*;
import static io.gatling.javaapi.core.CoreDsl.*;
import static io.gatling.javaapi.http.HttpDsl.*;
public class ExitSimulation extends Simulation {
HttpProtocolBuilder httpProtocol =
http.baseUrl("https://computer-database.gatling.io")
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.acceptLanguageHeader("en-US,en;q=0.5")
.acceptEncodingHeader("gzip, deflate")
.userAgentHeader(
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0"
);
ScenarioBuilder users = scenario("Users")
.exitBlockOnFail().on(
http("req1").get("/"),
http("req2").get("/").check(status().is(999)),
http("req3").get("/")
);
{
setUp(
users.injectOpen(atOnceUsers(1))
).protocols(httpProtocol);
}
}
|
I will try to find a way to reproduce it with a simple example. What you describe is what I experience with 3.9.5.6, but with 3.9.10.1, I have the following difference :
|
Hi @slandelle , I did some tests with 3.9.10.1 and 3.9.5.6 with a simplified example based on yours. I notice a really strange difference in the console output between the two versions : With 3.9.5.6, the logs shows the body of the HTTP response :
With 3.10.0.1, the logs show a different error with a
Simplified simulation used :
|
@nvervelle Your help is much appreciated, but really, this is a but tracker. I've opened a ticket for the other Waiting for your reproducer about |
Can you reproduce without enable DEBUG/TRACE logging? |
I'm still trying to reproduce the problem with a simple example, but still no success... I'm doing other attempts and will keep you posted. I posted the problem with the exception here, because I thought it may have a link to the problem I see. Apparently no, so I will try further to produce a simple reproducer. |
My problem is related, at least partially, to #4497 : the 415 errors I was receiving were due to the HTTP Content-Type passed by the new version of gatling. With 3.10.2, the requests don't fail, so my simulations are working, but I have to check what happens if a request fail. I will keep you posted. |
I tried again running the simulations in a real load testing session, with failures in the requests : I don't see the problem anymore. Maybe the various fixes you did were sufficient to fix my problem ? I suggest to close this issue, and I will post again if I have again this problem. |
OK. Thanks for your feedback! |
Following the problem with gatling 3.10.0 (see #4494), I tried upgrading from gatling 3.9.5.6 to gatling 3.10.1.
It seems I have another problem though : I replaced calls
CoreDsl.exitBlockOnFail(...)
byCoreDsl.exitBlockOnFail().on(...)
to take into account the breaking change in gatling DSL, but now errors fail to exit the simulation, the simulation seems to be stucked instead of finishingI see logs stating that a request has failed, but nothing more happens to the simulation :
11:37:09.847 [DEBUG] i.g.h.e.r.DefaultStatsProcessor - Request 'applicant-submit-challenge' failed for user 2: status.find.is(200), but actually found 415
Any idea what can be causing such problem ?
The text was updated successfully, but these errors were encountered: