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

Core: stopInjector don't wait for save results of previously exec #4326

Closed
gemiusz opened this issue Sep 5, 2022 · 1 comment
Closed

Core: stopInjector don't wait for save results of previously exec #4326

gemiusz opened this issue Sep 5, 2022 · 1 comment
Assignees
Milestone

Comments

@gemiusz
Copy link
Contributor

gemiusz commented Sep 5, 2022

Gatling: 3.8.3
OS: Windows 10 Pro
JDK: jdk-17.0.4

stopInjector should wait for save results of previously exec.

Scenario:

public class StopInjectorStatusCodeSimulation extends Simulation {

    HttpProtocolBuilder httpProtocol =
            http
                    .baseUrl("https://postman-echo.com");

    ScenarioBuilder scn =
            scenario("GeMi_ExitHereStatusCodeSimulation")
                    .exec(
                                            http("GeMi_ExitHereStatusCodeSimulation_get")
                                                    .get("/status/414")
                                    )
                    .stopInjector("EndOfThis");
    

    {
        setUp(scn.injectOpen(atOnceUsers(1)).protocols(httpProtocol));
    }
}

Simulation.log is empty.

Console:

image

@slandelle slandelle self-assigned this Sep 5, 2022
@slandelle slandelle added this to the 3.8.4 milestone Sep 5, 2022
slandelle added a commit that referenced this issue Sep 5, 2022
…form a `stopGracefully`, close #4326

Motivation:

Not a hard `stop`
@slandelle
Copy link
Member

That's indeed a bug: we were performing a hard stop instead of a graceful one, so in your case the log file wasn't forcefully flushed (and it never was naturally because the buffer is never full with just one single request performed).

Thanks for reporting!

slandelle added a commit that referenced this issue Sep 5, 2022
…form a `stopGracefully`, close #4326

Motivation:

Not a hard `stop`
slandelle added a commit that referenced this issue Sep 5, 2022
…form a `stopGracefully`, close #4326

Motivation:

Not a hard `stop`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants