Whamcloud - gitweb
EX-3889 lipe: lamigo error reporting and signal handling
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 22 Sep 2021 19:15:52 +0000 (14:15 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 14 Jan 2022 21:35:24 +0000 (21:35 +0000)
commitb67ed0c6c815b1816b82001149df1eb30a30d053
tree61c2b40b83aa35aa9a7340dfa7b14c6f79696a94
parentee6b227b286678a7c2d7d26ea755a589a4060744
EX-3889 lipe: lamigo error reporting and signal handling

Add new macros LAMIGO_{FATAL,ERROR,WARN,INFO,DEBUG}() to replace the
existing calls to llapi_error() and llapi_printf(). Replace almost all
open coded calls to exit() with LAMIGO_FATAL(). Handle signals
(SIGTERM, SIGUSR1, SIGUSR2) from a dedicated thread. Add
x{malloc,calloc,strdup}() macros that call LAMIGO_FATAL() on OOM
conditions. In main() replace the while (!stop) loop with a
non-breaking while (1) loop.

Test-Parameters: trivial testlist=hot-pools
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Idc31da6eca847305ca16b9992a7fb22aa4d0f112
Reviewed-on: https://review.whamcloud.com/45026
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Alexandre Ioffe <aioffe@ddn.com>
Reviewed-on: https://review.whamcloud.com/45210
lipe/src/lamigo.c
lipe/src/lamigo.h
lipe/src/lamigo_alr.c
lipe/src/lamigo_hash.c
lipe/src/lamigo_hash.h
lustre/tests/hot-pools.sh