-
Notifications
You must be signed in to change notification settings - Fork 40
Wrk scenario test cases #641
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
base: master
Are you sure you want to change the base?
Conversation
|
Just focus on one issue a time bud 🙏 |
core/src/main/java/io/hyperfoil/core/impl/PhaseInstanceImpl.java
Outdated
Show resolved
Hide resolved
Yes. The focus is Any idea about what we should do if Issue: Requests started in the Impact: The Question: Should we make the system wait for all requests to finish before moving to the next phase? |
|
Why it is waiting? |
|
Try to understand why we have a calibration phase and what it is for; if is not needed or the reason why was there no longer valid, we should get rid of it. |
The calibration, imho, is valid to warm up the loader.
Ok. So you are expecting that. The idea of this PR is not to fix any issue. Just create a reproducer for it. |
Yes and no. To be fair you don't know when is warmed up (it depends by both client and server hotspot or anything which the server is running..) so we should have an option to decide to not make it happen too. |
Yes and no. To be fair you don't know when is warmed up so we should have an option to decide to not make it happen too (or decide the calibration duration, which is better IMHO). |
f5fa9fc to
4a710b0
Compare
|
I'm not able to see the tests failing on my machine: check what's going on @diegolovison 🙏 |
| test | ||
| } | ||
|
|
||
| public BenchmarkBuilder getBenchmarkBuilder(String name, String url, boolean enableHttp2, int connections, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public BenchmarkBuilder getBenchmarkBuilder(String name, String url, boolean enableHttp2, int connections, | |
| public BenchmarkBuilder createBenchmarkBuilder(String name, String url, boolean enableHttp2, int connections, |
| synchronized (this) { | ||
| assert status == Status.NOT_STARTED : "Status is " + status; | ||
| status = Status.RUNNING; | ||
| this.changeStatus(Status.RUNNING); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to use this. for the these...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by e77b7c0
I removed those unrelated changes from this PR
| } | ||
| } | ||
|
|
||
| public void setEnableWatchdog(boolean enableWatchdog) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems unrelated to this issue: what it is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by e77b7c0
I removed those unrelated changes from this PR
| return benchmark.getAbsolutePath(); | ||
| } | ||
|
|
||
| public class TestStatistics implements StatisticsCollector.StatisticsConsumer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestStatistics is already on BaseScenarioTest - no need of a new class which does the same (if it's the same)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestStatistics from BaseScenarioTest is storing only the metric.
The new TestStatistics are separated per phase, which is where we can show the issue in the assert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cannot we unify them and have just one type?
4a710b0 to
76d76ef
Compare
The goal of this test is to demonstrate two scenarios that are failing:
During the test we have the following log
Between FINISHED and TERMINATED, What should we do with
in-flightrequests?