apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

request help: 使用mock etcd后发现会定期出现etcdserver: duplicate key given in txn reques的报错

Open Tanc010 opened this issue 8 months ago • 0 comments

Issue description

Image 我发现controller会间隔一段时间做一次全局的sync,每次sync都会作为Add事件最终执行etcd的create,这样就会出错。

Image 上面是定时做全局的sync

Image 上面会将sync作为Add事件

问题:是否可以sync的时候先判断如果etcd中有数据则进行Update而不是Create

Environment

  • your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
  • your Kubernetes cluster version (output of kubectl version):
  • if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):

Tanc010 avatar Apr 07 '25 09:04 Tanc010