-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
K6 Process Hangs After Summary Report #2937
Comments
You don't see any logs after |
@na--, correct. The logs you see posted above are in the order seen and are until the last line. |
Can you instead of ctrl+c, to stop it, to press ctrl+\ which will again kill the process but dump the stacktraces of the current goroutines. It will likely output quite a lot so maybe uploading it to a gist will be better. |
@mstoykov check https://gist.github.com/ichasepucks/431a2f30fa7a69124cc31787a85545f0. I had one interrupted view on this run which is not usual. I may try to create a second stacktrace to be sure we don't conflate any issues here. Here is a second stack trace where I didn't get any interrupted views. https://gist.github.com/ichasepucks/f0fe8c12b63a6c9fca6388b1b7ed718e |
https://gist.github.com/kempsterc/5dc1f549e254b52a4f57c2e7264d5fe9 heres one from my run |
@mstoykov tracked down the issue and it turns out it's a stupid mistake I made when refactoring Lines 309 to 327 in 2305316
The good news is that the fix is relatively easy (#2938) and we'll release it as k6 v0.43.1 early next week (probably along with a few other minor bugfixes). Until then, the problem can be avoided if the usage reports are disabled by one of these options or if you use the |
This should now be fixed in https://github.com/grafana/k6/releases/tag/v0.43.1 |
Confirmed this fixed it for me. Thank you! |
Brief summary
Starting with 0.43.0 we're noticing the K6 process does not terminate after the summary report. This does not happen with 0.42.0 and earlier versions.
We are building our own custom docker image with the k6-sql plugin. However, I've tried with the loadimpact/k6 image as well and can reproduce, so I don't think it's actually plugin related.
Other configuration details:
The execution environment is on a Kubernetes cluster.
Tail of logs from 0.43.0 simplified
Tail of logs from 0.42.0 simplified
Definitely a very different logging profile from 0.43.0.
I don't have a simplified repro script just yet. If the logging is not indicative of the problem, I can work on trying to get repro steps that don't include our code.
k6 version
0.43.0
OS
Arch Linux
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Execute scripts
Expected behaviour
Process terminates after script executions complete
Actual behaviour
K6 process never terminates
The text was updated successfully, but these errors were encountered: