lkad commented on issue #2341:
URL:
https://github.com/apache/apisix-ingress-controller/issues/2341#issuecomment-2562287793
when i change apisixroute .
apisix add record to etcd,and notifiy to apisix,but apisix note apply to
route
```
2024/12/26 07:06:27 [info] 56#56: *15617 [lua] config_etcd.lua:120:
produce_res(): append res: {
result = {
events = { {
kv = {
create_revision = "1031",
key = "/apisix/upstreams/5019bcf9",
mod_revision = "1033",
value = {
desc = "Created by apisix-ingress-controller, DO NOT modify it
manually",
id = "5019bcf9",
labels = {
["managed-by"] = "apisix-ingress-controller"
},
name = "testroute2_httpbin_80",
nodes = { {
host = "192.168.70.252",
port = 80,
weight = 100
},
<metatable> = <1>{}
},
scheme = "http",
type = "roundrobin"
}
},
prev_kv = {
create_revision = "1031",
key = "/apisix/upstreams/5019bcf9",
mod_revision = "1031",
value = {
desc = "Created by apisix-ingress-controller, DO NOT modify it
manually",
id = "5019bcf9",
labels = {
["managed-by"] = "apisix-ingress-controller"
},
name = "testroute2_httpbin_80",
nodes = { {
host = "192.168.70.252",
port = 80,
weight = 100
},
<metatable> = <table 1>
},
scheme = "http",
type = "roundrobin"
}
}
}, {
kv = {
create_revision = "1032",
key = "/apisix/routes/48d337a6",
mod_revision = "1034",
value = {
desc = "Created by apisix-ingress-controller, DO NOT modify it
manually",
hosts = { "routetest3.ccc.ccc",
<metatable> = <table 1>
},
id = "48d337a6",
labels = {
["managed-by"] = "apisix-ingress-controller"
},
name = "testroute2_test-route_route-1",
plugin_config_id = "6058ee0d",
plugins = {
["host-rate-limit"] = {
capacity = 1000,
interval = 1000,
key = "http_test",
key_type = "var",
lock_enable = true,
max_wait = 1000,
quantum = 1000,
rejected_code = 503
}
},
upstream_id = "5019bcf9",
uris = { "/*",
<metatable> = <table 1>
}
}
},
prev_kv = {
create_revision = "1032",
key = "/apisix/routes/48d337a6",
mod_revision = "1032",
value = {
desc = "Created by apisix-ingress-controller, DO NOT modify it
manually",
hosts = { "routetest2cccc.ccc.ccc",
<metatable> = <table 1>
},
id = "48d337a6",
labels = {
["managed-by"] = "apisix-ingress-controller"
},
name = "testroute2_test-route_route-1",
plugin_config_id = "6058ee0d",
plugins = {
["host-rate-limit"] = {
capacity = 1000,
interval = 1000,
key = "http_test",
key_type = "var",
lock_enable = true,
max_wait = 1000,
quantum = 1000,
rejected_code = 503
}
},
upstream_id = "5019bcf9",
uris = { "/*",
<metatable> = <table 1>
}
}
}
} },
header = {
revision = "1034"
},
watch_id = "42"
}
}, err: nil, context: ngx.timer
2024/12/26 07:06:31 [info] 51#51: *16770 client closed connection while
waiting for request, client: 127.0.0.1, server: 0.0.0.0:9180
```
below function
```
-- append res to the queue and notify pending watchers
local function produce_res(res, err)
if log_level >= NGX_INFO then
log.info("append res: ", inspect(res), ", err: ", inspect(err))
end
insert_tab(watch_ctx.res, {res=res, err=err})
for _, sema in pairs(watch_ctx.sema) do
sema:post()
end
table.clear(watch_ctx.sema)
end
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]