You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've seen this panic when a k6 instance was stopped (essentially equivalent to curl -X PATCH --data '{"data":{"type":"status","id":"default","attributes":{"stopped":true}}}' 'http://localhost:6565/v1/status'):
It's nigh impossible to reproduce, and while panics should never happen in k6, the bigger problem here is that everything dies because a single VU had some weird issue. So, after #877 (comment) or something like it is done, we should add recover() around each executed JS iteration. If it panicked, we should emit a interrupted_iterations{cause:error} =1 metric, or maybe even interrupted_iterations{cause:panic}... We should also log the panic via our logger, with a PanicLevel, but we shouldn't actually panic and abort the whole k6 process!
The text was updated successfully, but these errors were encountered:
We've seen this panic when a k6 instance was stopped (essentially equivalent to
curl -X PATCH --data '{"data":{"type":"status","id":"default","attributes":{"stopped":true}}}' 'http://localhost:6565/v1/status'
):It's nigh impossible to reproduce, and while panics should never happen in k6, the bigger problem here is that everything dies because a single VU had some weird issue. So, after #877 (comment) or something like it is done, we should add
recover()
around each executed JS iteration. If it panicked, we should emit ainterrupted_iterations{cause:error} =1
metric, or maybe eveninterrupted_iterations{cause:panic}
... We should also log the panic via our logger, with aPanicLevel
, but we shouldn't actually panic and abort the whole k6 process!The text was updated successfully, but these errors were encountered: