On 11/4/19 2:56 μ.μ., Willy Tarreau wrote:
> Hi Pavlos,
> 
> On Thu, Apr 11, 2019 at 09:47:41AM +0200, Pavlos Parissis wrote:
>> Hi,
>>
>> I am having a rather simple config[1] for testing few changes in 
>> haproxyadmin library and I noticed
>> that two different map files have the same ID:
>>
>> echo 'show map' | socat /run/haproxy/admin1.sock  -
>> # id (file) description
>> -1 (/etc/haproxy/test_map.map) pattern loaded from file 
>> '/etc/haproxy/test_map.map' used by map at
>> file '/etc/haproxy/haproxy.cfg-haproxystats' line 75
>> -1 (/etc/haproxy/test2_map.map) pattern loaded from file 
>> '/etc/haproxy/test2_map.map' used by map at
>> file '/etc/haproxy/haproxy.cfg-haproxystats' line 79
> (...)
> 
> Thanks for your detailed report and the reproducer, I thought I was
> becoming crazy until I figured it only happens for maps created with
> use_backend, log-format, or unique-id-format rules. -1 is the
> uninitialized value. These maps are simply not fully initialized
> because the initialization was done before they were loaded very
> late in the boot process, so you cannot correctly update them on
> the CLI and they will not use the pattern cache.
> 
> That's fixed with the attached patch that I just merged, all versions
> since 1.5 have the same bug!

Thanks a lot for this, as always, very fast response and solution to the issue!

Cheers,
Pavlos

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to