Skip to content

bug: apisix 3.x lost config cache values after etcd compacted #8682

Description

@zlhgo

Current Behavior

local dir_res, headers = res.body.list or {}, res.headers

Perhaps should be

local dir_res, headers = res.body.node or {}, res.headers

#8675 has the same problem.

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

etcdctl compact `etcdctl get -w json /apisix/upstreams/ | jq .header.revision`

Perhaps this command should be run multiple times.
2. do not update related keys, for example global_rules.
3. wait a moment, the global plugins not working.

Environment

  • APISIX version (run apisix version): 3.1.0
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions