From 7c567c4e1025f57ee202b996cfaeab76a7c814ba Mon Sep 17 00:00:00 2001 From: AlinsRan Date: Wed, 24 Jun 2026 09:04:06 +0800 Subject: [PATCH] fix(prometheus): bump nginx-lua-prometheus-api7 to 0.20260623 to drop duplicate metrics nginx-lua-prometheus-api7 0.20260623 fixes duplicate metric emission caused by a KeyIndex desync (api7/nginx-lua-prometheus#14): when a TTL'd metric expires in the shared dict and is re-added at a new slot while a stale slot lingers before another worker's incremental-sync cursor, that worker lists the same series twice -- the repeated apisix_http_status{...} lines reported in #11934. The fix is verified by the library's own unit tests (testListDeduplicatesStaleSlot and testExpiredReAddNoDuplicate in prometheus_test.lua). The duplicate is a cross-worker race that only arises from a specific shared-dict sync interleaving and is not reproducible by a single-worker (or even a naive multi-worker) APISIX integration test -- the shared-dict sync reconciles the stale slot away in any straightforward sequence -- so no t/ case is added here. Fixes #11934 --- apisix-master-0.rockspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apisix-master-0.rockspec b/apisix-master-0.rockspec index 5cd33ca3ff6d..a7825837f7c1 100644 --- a/apisix-master-0.rockspec +++ b/apisix-master-0.rockspec @@ -54,7 +54,7 @@ dependencies = { "lua-resty-openidc = 1.8.0-1", "lua-resty-saml = 0.2.5", "luafilesystem = 1.8.0-1", - "nginx-lua-prometheus-api7 = 0.20250302-1", + "nginx-lua-prometheus-api7 = 0.20260623-1", "jsonschema = 0.9.13-0", "lua-resty-ipmatcher = 0.6.1-0", "lua-resty-kafka = 0.23-0",