BUG/MINOR: log/balance: detect if user tries to use unsupported algo
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 28 Mar 2024 15:06:58 +0000 (16:06 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 29 Mar 2024 16:08:36 +0000 (17:08 +0100)
commitd0692d7019cecaa87c8dc411312211045eac4b05
tree156da7a04c68a34201a82ca319772c5ef930624e
parentd9f42e19f4e83cd75a22ca629e7d629e59486acb
BUG/MINOR: log/balance: detect if user tries to use unsupported algo

b61147fd ("MEDIUM: log/balance: merge tcp/http algo with log ones")
introduced some ambiguities, because while it shares some algos with the
ones from mode {tcp,http}, we forgot report an error when the user tries
to use an algorithm that is not available in this mode (as per the doc).

Because of that, haproxy would silently drop log messages during runtime.

To fix that, we ensure that algo is one of the supported ones during log
backend postparsing. If the algo is not supported, we raise an error.

This should be backported in 2.9 with b61147fd
src/log.c