Open jiangfucheng opened 1 year ago
if you use apisix 3.2.2 or 3.4.x, it may related to this bug https://github.com/apache/apisix/pull/9967
if you use apisix 3.2.2 or 3.4.x, it may related to this bug #9967
No, it's another bug, https://github.com/apache/apisix/pull/9967 have been merged
Current Behavior
When add "set route" and "hit route" logic in one "TEST" block, I found the "set route" will not effect, eg:
I debug APISIX and found the reason is in this logic:
https://github.com/apache/apisix/blob/fed6f79b1e284590e91c03c90fda3b6ba6c4aa06/apisix/core/config_etcd.lua#L509-L522
the
values
variable is a object but not alist(table)
the calling code is here:
https://github.com/apache/apisix/blob/fed6f79b1e284590e91c03c90fda3b6ba6c4aa06/apisix/core/config_etcd.lua#L621C19-L621C19
prefix: /apisix-test
this format will cause this bug.I am currently not familiar with the code for
lua-resty-etcd
, so I haven't find the real reason yet.Expected Behavior
The test case should be passed no matter execute any times
Error Logs
No response
Steps to Reproduce
Environment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):