wklken commented on issue #9951:
URL: https://github.com/apache/apisix/issues/9951#issuecomment-1661955530

   I change the log level to info, and after create the route/service, the 
changes have been watched and the config_etcd print the event; But still 404; I 
did not see any additional logs regarding what happened after the event was 
received.
   
   
   ```
   2023/08/02 10:06:34 [info] 37#37: *19 [lua] config_etcd.lua:193: res_func: {
     result = {
       events = { {
           kv = {
             create_revision = "437830",
             key = "/bk-gateway-apisix/services/ddd.prod.stage-19",
             mod_revision = "437830",
             value = {
               create_time = 1690970794,
               desc = "正式环境",
               id = "ddd.prod.stage-19",
               labels = {
                 ["gateway.bk.tencent.com/gateway"] = "ddd",
                 ["gateway.bk.tencent.com/stage"] = "prod"
               },
               name = "ddd-prod-stage-prod-19",
   
   
   2023/08/02 10:06:34 [info] 40#40: *36 [lua] config_etcd.lua:117: 
produce_res(): append res: {
     result = {
       events = { {
           kv = {
             create_revision = "437830",
             key = "/bk-gateway-apisix/services/ddd.prod.stage-19",
             mod_revision = "437830",
             value = {
               create_time = 1690970794,
               desc = "正式环境",
               id = "ddd.prod.stage-19",
               labels = {
                 ["gateway.bk.tencent.com/gateway"] = "ddd",
                 ["gateway.bk.tencent.com/stage"] = "prod"
               },
               name = "ddd-prod-stage-prod-19",
   
   2023/08/02 10:06:34 [info] 37#37: *19 [lua] config_etcd.lua:193: res_func: {
     result = {
       events = { {
           kv = {
             create_revision = "437831",
             key = "/bk-gateway-apisix/routes/ddd.prod.-1",
             mod_revision = "437831",
             value = {
               create_time = 1690970794,
               desc = "获取发布信息,用于检查版本发布结果",
               id = "ddd.prod.-1",
               labels = {
                 ["gateway.bk.tencent.com/gateway"] = "ddd",
                 ["gateway.bk.tencent.com/stage"] = "prod"
               },
               methods = { "GET",
                 <metatable> = <1>{}
               },
               name = "ddd-prod-apigw-builtin-mock-release-version",
               plugins = {
   
   
   2023/08/02 10:06:34 [info] 40#40: *36 [lua] config_etcd.lua:117: 
produce_res(): append res: {
     result = {
       events = { {
           kv = {
             create_revision = "437831",
             key = "/bk-gateway-apisix/routes/ddd.prod.-1",
             mod_revision = "437831",
   2023/08/02 10:07:22 [info] 40#40: *7873 [lua] v3.lua:187: _request_uri(): v3 
request uri: /kv/range, timeout: 120, context: ngx.timer
   2023/08/02 10:07:22 [info] 40#40: *7873 [lua] v3.lua:76: choose_endpoint(): 
choose endpoint: http://127.0.0.1:2379, context: ngx.timer
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] client.lua:123: dns_parse(): 
dns resolve bk-apigateway-etcd, result: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/kv/range HTTP/1.1", host: 
"127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:84: 
parse_domain(): parse addr: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/kv/range HTTP/1.1", host: 
"127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:85: 
parse_domain(): resolver: ["1.1.1.1"], client: unix:, server: , request: "POST 
/v3/kv/range HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:86: 
parse_domain(): host: bk-apigateway-etcd, client: unix:, server: , request: 
"POST /v3/kv/range HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:88: 
parse_domain(): dns resolver domain: bk-apigateway-etcd to 2.2.2.2, client: 
unix:, server: , request: "POST /v3/kv/range HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:07:22 [info] 40#40: *7873 [lua] v3.lua:187: keepalive(): v3 
request uri: /lease/keepalive, timeout: nil, context: ngx.timer
   2023/08/02 10:07:22 [info] 40#40: *7873 [lua] v3.lua:76: choose_endpoint(): 
choose endpoint: http://127.0.0.1:2379, context: ngx.timer
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] client.lua:123: dns_parse(): 
dns resolve bk-apigateway-etcd, result: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/lease/keepalive HTTP/1.1", host: 
"127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:84: 
parse_domain(): parse addr: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/lease/keepalive HTTP/1.1", host: 
"127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:85: 
parse_domain(): resolver: ["1.1.1.1"], client: unix:, server: , request: "POST 
/v3/lease/keepalive HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:86: 
parse_domain(): host: bk-apigateway-etcd, client: unix:, server: , request: 
"POST /v3/lease/keepalive HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:07:22 [info] 37#37: *6184 [lua] resolver.lua:88: 
parse_domain(): dns resolver domain: bk-apigateway-etcd to 2.2.2.2, client: 
unix:, server: , request: "POST /v3/lease/keepalive HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:07:24 [info] 40#40: *36 [lua] config_etcd.lua:193: res_func: 
nil, context: ngx.timer
   2023/08/02 10:07:24 [info] 40#40: *36 [lua] config_etcd.lua:107: 
cancel_watch(): cancel watch connection success, context: ngx.timer
   2023/08/02 10:07:24 [info] 40#40: *36 [lua] config_etcd.lua:181: restart 
watchdir: start_revision=437835, context: ngx.timer
   2023/08/02 10:07:24 [info] 37#37: *5479 epoll_wait() reported that client 
prematurely closed connection, so upstream connection is closed too while 
reading upstream, client: unix:, server: , request: "POST /v3/watch HTTP/1.1", 
upstream: "http://2.2.2.2:2379/v3/watch";, host: "127.0.0.1"
   2023/08/02 10:07:24 [info] 40#40: *36 [lua] v3.lua:76: choose_endpoint(): 
choose endpoint: http://127.0.0.1:2379, context: ngx.timer
   2023/08/02 10:07:24 [info] 37#37: *19 [lua] config_etcd.lua:193: res_func: 
nil, context: ngx.timer
   2023/08/02 10:07:24 [info] 37#37: *19 [lua] config_etcd.lua:107: 
cancel_watch(): cancel watch connection success, context: ngx.timer
   2023/08/02 10:07:24 [info] 37#37: *19 [lua] config_etcd.lua:181: restart 
watchdir: start_revision=437835, context: ngx.timer
   2023/08/02 10:07:24 [info] 37#37: *19 [lua] v3.lua:76: choose_endpoint(): 
choose endpoint: http://127.0.0.1:2379, context: ngx.timer
   2023/08/02 10:08:14 [info] 37#37: *7948 epoll_wait() reported that client 
prematurely closed connection, so upstream connection is closed too while 
reading upstream, client: unix:, server: , request: "POST /v3/watch HTTP/1.1", 
upstream: "http://2.2.2.2:2379/v3/watch";, host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 40#40: *36 [lua] config_etcd.lua:193: res_func: 
nil, context: ngx.timer
   2023/08/02 10:08:14 [info] 37#37: *9249 [lua] client.lua:123: dns_parse(): 
dns resolve bk-apigateway-etcd, result: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 37#37: *9249 [lua] resolver.lua:84: 
parse_domain(): parse addr: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 40#40: *36 [lua] config_etcd.lua:107: 
cancel_watch(): cancel watch connection success, context: ngx.timer
   2023/08/02 10:08:14 [info] 37#37: *9249 [lua] resolver.lua:85: 
parse_domain(): resolver: ["1.1.1.1"], client: unix:, server: , request: "POST 
/v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 40#40: *36 [lua] config_etcd.lua:181: restart 
watchdir: start_revision=437835, context: ngx.timer
   2023/08/02 10:08:14 [info] 37#37: *9249 [lua] resolver.lua:86: 
parse_domain(): host: bk-apigateway-etcd, client: unix:, server: , request: 
"POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 37#37: *9249 [lua] resolver.lua:88: 
parse_domain(): dns resolver domain: bk-apigateway-etcd to 2.2.2.2, client: 
unix:, server: , request: "POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 40#40: *36 [lua] v3.lua:76: choose_endpoint(): 
choose endpoint: http://127.0.0.1:2379, context: ngx.timer
   2023/08/02 10:08:14 [info] 37#37: *6184 epoll_wait() reported that client 
prematurely closed connection, so upstream connection is closed too while 
reading upstream, client: unix:, server: , request: "POST /v3/watch HTTP/1.1", 
upstream: "http://2.2.2.2:2379/v3/watch";, host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 37#37: *8582 [lua] client.lua:123: dns_parse(): 
dns resolve bk-apigateway-etcd, result: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 37#37: *8582 [lua] resolver.lua:84: 
parse_domain(): parse addr: 
{"class":1,"type":1,"section":1,"address":"2.2.2.2","ttl":30,"name":"bk-apigateway-etcd.default.svc.cluster.local"},
 client: unix:, server: , request: "POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 37#37: *8582 [lua] resolver.lua:85: 
parse_domain(): resolver: ["1.1.1.1"], client: unix:, server: , request: "POST 
/v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 37#37: *8582 [lua] resolver.lua:86: 
parse_domain(): host: bk-apigateway-etcd, client: unix:, server: , request: 
"POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   2023/08/02 10:08:14 [info] 37#37: *8582 [lua] resolver.lua:88: 
parse_domain(): dns resolver domain: bk-apigateway-etcd to 2.2.2.2, client: 
unix:, server: , request: "POST /v3/watch HTTP/1.1", host: "127.0.0.1"
   ```
   


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to