membphis commented on code in PR #14226:
URL: https://github.com/apache/apisix/pull/14226#discussion_r4638223820


##########
apisix/plugins/limit-conn/init.lua:
##########
@@ -136,7 +135,8 @@ local function gen_limit_key(conf, ctx, key)
         return nil
     end
 
-    local new_key = parent.resource_key .. ':' .. 
apisix_plugin.conf_version(conf) .. ':' .. key
+    -- Configuration updates must not reset in-flight occupancy.
+    local new_key = parent.resource_key .. ':' .. key

Review Comment:
   Non-blocking suggestion: consider appending `:0` for ordinary limiters and 
keeping `:<_vid>` for workflow actions. Under the same owning resource, an 
ordinary resolved key `tenant:1` and workflow rule 1 with resolved key `tenant` 
currently produce the same counter key. Giving both paths a stable final field 
would distinguish them without reintroducing configuration hashes. This can be 
addressed here or tracked as a known limitation.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to