grafana / k6

A modern load testing tool, using Go and JavaScript - https://k6.io
GNU Affero General Public License v3.0
25.61k stars 1.26k forks source link

Test terminated with exit code 2 #3962

Open ameetpal opened 3 weeks ago

ameetpal commented 3 weeks ago

We are using K6-operator to run an 8 hour test, but it only ran for 5 hours and exited with exit code 2, there was no error log and resources were also sufficient, do anyone knows what exit code 2 signifies ?

On further investigating, i found that if there is panic in main thread or in output extension it may result in an exit code

Please provide some assistance around this

ameetpal commented 1 week ago

any update here ?

mstoykov commented 1 week ago

Hi @ameetpal , sorry for the slow reply 🙇

exit code 2 is coming directly from golang and AFAIK it always means a panic of some kind. So the expectation is that you will have a message along with it explaining the panic.

For long tests I expect the most likely case will be OOM.

I am not working with k6-operator, so maybe someone with more experience can help you find the logs.

cc @yorugac

ameetpal commented 3 days ago

Hi @mstoykov , OOM is not happening but i am suspecting, prometheus extension might be panicing but i am not able see error message. Every thing happen so quickly that pod crashed