Fail the fio job instead of exiting the process on a client error #202

Open
koolkhel wants to merge 2 commits from koolkhel/vitastor:fio-no-exit-on-error into master

2 Commits

Author SHA1 Message Date
303f7e6623 Fail fio's getevents when the client has failed
Operations already sent to OSDs never complete on a failed client, so a
fatal error during the job (for example etcd cancelling the client's
watch) left fio waiting in getevents forever now that the client no
longer exits. Return EIO from getevents when the client has failed and
nothing it waits for has completed.
2026-11-29 14:54:59 +03:00
e1f101dfff Fail the fio job instead of exiting the process on a client error
The fio engine left client_exit_on_error at its default, so a fatal client
error at start (for example an invalid osd_network mask in etcd) called
exit() inside the fio job, and fio then crashed. Disable the exit like the
QEMU driver does and fail the job's setup with the client's error.

An aborted client still accepted new ops and never completed them:
continue_rw() returns at once when the client is aborted, so a job without
-image hung on its first I/O. Fail ops on an aborted client with ECANCELED,
including the ones still waiting for PGs when the error comes, because an
error that stops the PG load would leave them waiting forever.
2026-11-29 12:39:35 +03:00