]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: promex: Detach promex from the server on error dump its metrics dump
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 23 Jan 2026 09:23:27 +0000 (10:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 23 Jan 2026 10:40:54 +0000 (11:40 +0100)
commitbe68ecc37d21ec18a101e349cafe8e011e98e728
tree1be564341c6a6a016e0679c33e1a78008cb991f9
parenta66b4881d7cc128494cf4eff626ec4423abb0a65
BUG/MINOR: promex: Detach promex from the server on error dump its metrics dump

If an error occurres during the dump of a metric for a server, we must take
care to detach promex from the watcher list for this server. It must be
performed explicitly because on error, the applet state (st1) is changed, so
it is not possible to detach it during the applet release stage.

This patch must be backported with b4f64c0ab ("BUG/MEDIUM: promex: server
iteration may rely on stale server") as far as 3.0. On older versions, 2.8
and 2.6, the watcher_detach() line must be changed by "srv_drop(ctx->p[1])".
addons/promex/service-prometheus.c