-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Routing configuration not taking effect, and the backend reports an etcd error. #2071
Comments
@wumengchao What are the logs from Ingress when you apply the configuration which doesn't take effect? |
2023-11-28T09:55:18+08:00 �[31merror�[0m 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 354 } {key 15 0 /apisix/routes/35232d71 } I have launched 15 pods. |
From the logs, it appears that an error is reported every 5 minutes. |
Today, it was also discovered that some pods remain in the "create object" state during the startup process, and all access attempts to enter these pods result in a 404 error with the message {"error_msg":"404 Route Not Found"}. The last log entry is: adapter/etcd.go:147 created object{revision 11 126 } {key 15 0 /apisix/routes/ac8106c4 } s there a probe that can detect whether the route object has been successfully created? |
Looking into this... |
@wumengchao Composite mode simulates the etcd, so the log is coming from etcd-adapter that is used by ingress controller which simulates etcd. The data is stored in in-mem b-tree.
So let's do this. After you create the route, can you query the apisix-ingress-controller pod by querying with etcdctl on port |
15 pods refer to ingress-apisix-composite. |
I intentionally configured an incorrect path. After encountering "failed to find route in cache," the following error immediately appears: "failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 76 } {key 15 0 /apisix/routes/eff2f3e2 }". |
“failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument ” |
@wumengchao A similar issue with reproduction steps has been reported here - #2076. I am working on this, |
fixed by #2078 |
After compiling and releasing the master branch, the issue still persists. |
@wumengchao Same errors? |
|
@wumengchao Yes this log can be ignored. I can confirm that the latest master doesn't have this bug.
|
OK |
Hello, I still have this issue with composite ingress controller, and routing isn't operate. I have a log like this every minute :
Do you know why ? |
hello @Revolyssup ,
logs:
|
@Revolyssup I've tested this with versions
I can help with debugging if needed. |
We're getting the same over in #2276 (also using apisixtls resources) |
Current Behavior
Occasionally, changes to the routing configuration do not take effect, and the deleted routing configurations are still active. At the same time, the backend reports the following errors, and I am not sure if these errors are related to this bug.
2023-11-25T04:31:57+08:00 �[31merror�[0m 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 26 } {key 15 0 /apisix/routes/6d611fe0 }
Expected Behavior
No response
Error Logs
2023-11-25T04:31:57+08:00 �[31merror�[0m 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 26 } {key 15 0 /apisix/routes/6d611fe0 }
Steps to Reproduce
Deployed using the latest version 1.7.1, through the Composite Architecture method.
Environment
The text was updated successfully, but these errors were encountered: