-
Notifications
You must be signed in to change notification settings - Fork 16
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: discovery not effect because of additional properties rewrite to etcd #79
Comments
Would you like to fix this? |
pull request created |
lol, I encountered other issues when fixing this issue. it's fine when work with apisix version: 3.5.0 and below, upstream in apisix 3.6.0 not allowed additional properties like _discovery_type, but it's necessary to save properties like _discovery_type: need to know discovery type when apisix-seed restart. |
@Monstergogo If you think the |
{ "timeout": { "connect": 6, "send": 6, "read": 6 }, "type": "roundrobin", "scheme": "grpc", "discovery_type": "nacos", "pass_host": "pass", "name": "apisix-seed", "service_name": "share.ShareService", "keepalive_pool": { "idle_timeout": 60, "requests": 1000, "size": 320 } }
{ "_discovery_type": "nacos", "_service_name": "share.ShareService", "create_time": 1699364548, "id": "486262354254758591", "keepalive_pool": { "idle_timeout": 60, "requests": 1000, "size": 320 }, "name": "apisix-seed", "nodes": [ { "host": "10.66.36.202", "port": 5018, "weight": 10 } ], "pass_host": "pass", "scheme": "grpc", "timeout": { "connect": 6, "read": 6, "send": 6 }, "type": "roundrobin", "update_time": 1699364548 }
it added field “_discovery_type” and "_service_name" which caused apisix err:
[error] 51#51: *251621 [lua] config_etcd.lua:843: failed to fetch data from etcd: failed to check item data of [/apisix/upstreams] err:additional properties forbidden, found _discovery_type, etcd key: /apisix/upstreams, context: ngx.timer
apisix version: 3.6.0
The text was updated successfully, but these errors were encountered: