Open boscard opened 1 month ago
We're also seeing this although we seem to get it even when not using ingress but rather simple httproute CRs
With this:
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: route-test
namespace: fek-test
spec:
http:
- backends:
- resolveGranularity: service
serviceName: data-capture
servicePort: 8080
weight: 100
match:
hosts:
- test.test.XXX.XXX.XXX
paths:
- /api/data-capture/forms/*
- /api/data-capture/profiles
- /api/data-capture/v1/fan/*
name: route-data-capture-public
plugins:
- config:
headers:
X-Tenant-Id: XXX
regex_uri:
- ^/api/data-capture(.*)$
- $1
enable: true
name: proxy-rewrite
We get
2024-08-15T03:05:00+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 93 <nil>} {key 15 0 /apisix/routes/3b8426dd <nil>}
Making me think it happens whenever multiple paths talk to the same backend. This doesn't happen with the etcd version of apisix + ingress controller
This looks similar to https://github.com/apache/apisix-ingress-controller/issues/2071 in a way.
@boscard have you used etcdctl to see whats showing in the ingress controller etcd-adapter for your troublesome route?
@rknightion no, I was not trying with etcdctl. If you can point me to some docs/readme how can I do it I will try.
Current Behavior
Defining two ingress definitions pointing to single service with pathType prefix and different paths will cause
Where in traditional mode everything works perfectly fine.
Expected Behavior
In combine mode there should also be possible to define multiple ingress definitions pointing to single service, where path is different for ingress definitions.
Error Logs
Steps to Reproduce
Environment