]> git.kaiwu.me - haproxy.git/commit
REGTESTS: stick-table: read the counters through sc1_ and sc2_ as well
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 19:43:23 +0000 (19:43 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:25:37 +0000 (17:25 +0200)
commit6accb03ef94da4dafc449794276bb86d692bc93b
tree462f31c16aa047f939fcfde9c8b9a94d87ba96ac
parentf6eba9017ef8a37520adba0c9feceb71bb27265b
REGTESTS: stick-table: read the counters through sc1_ and sc2_ as well

The sc1_* and sc2_* families are pure aliases of the sc0_* ones with a
different hard-coded stick counter id, and none of their 29 entries was
covered. The notes listed extending this test as the way to close them
all at once, which is what this does.

Two more tables are added, one per extra stick counter, rather than
tracking the single existing one three times, which would have counted
every connection and every request three times and forced all the
existing values to be rewritten. Each counter therefore sees its own
copy of the same entry, and the sc1_ and sc2_ readings are compared to
the sc0_ ones rather than to hard-coded values. The generic form with
the ids 1 and 2 is read the same way.

sc0_bytes_in_rate and sc0_bytes_out_rate, which the first version had
missed, and src_updt_conn_cnt(), which creates its entry as it reads it
and therefore gets a table of its own, are covered too.
reg-tests/stick-table/sc_counters.vtc