You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/20 06:25:58 UTC

[GitHub] [apisix] Yiyiyimu opened a new issue #3618: test unstable: t/discovery/eureka.t

Yiyiyimu opened a new issue #3618:
URL: https://github.com/apache/apisix/issues/3618


   ### Issue description
   ```
   
   #   Failed test 'TEST 1: get APISIX-EUREKA info from EUREKA - status code ok'
   #   at /home/runner/work/apisix/apisix/test-nginx/lib/Test/Nginx/Socket.pm line 948.
   #          got: '503'
   #     expected: '200'
   
   #   Failed test 'TEST 1: get APISIX-EUREKA info from EUREKA - response_body_like - response is expected (<html> <head><title>503 Service Temporarily Unavailable</title></head> <body> <center><h1>503 Service Temporarily Unavailable</h1></center> <hr><center>openresty/1.19.3.1</center> </body> </html>)'
   #   at /home/runner/work/apisix/apisix/test-nginx/lib/Test/Nginx/Socket.pm line 1635.
   #                   '<html>
   # <head><title>503 Service Temporarily Unavailable</title></head>
   # <body>
   # <center><h1>503 Service Temporarily Unavailable</h1></center>
   # <hr><center>openresty/1.19.3.1</center>
   # </body>
   # </html>
   # '
   #     doesn't match '(?^s:.*<name>APISIX-EUREKA</name>.*
   # )'
   
   Error: led test 'TEST 1: get APISIX-EUREKA info from EUREKA - pattern "[error]" should not match any line in error.log but matches line "2021/02/20 04:48:45 [error] 9881#9881: *2 [lua] eureka.lua:226: nodes(): failed to fetch nodes for : APISIX-EUREKA, client: 127.0.0.1, server: localhost, request: \"GET /eureka/apps/APISIX-EUREKA HTTP/1.1\", host: \"localhost\"" (req 0)
   # 2021/02/20 04:48:45 [info] 9881#9881: *2 [lua] upstream.lua:168: set_upstream(): discover new upstream from APISIX-EUREKA, type eureka: {"service_name":"APISIX-EUREKA","type":"roundrobin","parent":{"modifiedIndex":1613796524,"has_domain":false,"value":{"uri":"\/eureka\/*","upstream":{"service_name":"APISIX-EUREKA","type":"roundrobin","parent":"table: 0x7fb1cda2b930","hash_on":"vars","scheme":"http","discovery_type":"eureka","pass_host":"pass"},"priority":0,"status":1,"id":"routes#1"},"clean_handlers":{},"key":"\/routes\/arr_1"},"hash_on":"vars","scheme":"http","discovery_type":"eureka","pass_host":"pass"}, client: 127.0.0.1, server: localhost, request: "GET /eureka/apps/APISIX-EUREKA HTTP/1.1", host: "localhost"
   # '
   #   at /home/runner/work/apisix/apisix/test-nginx/lib/Test/Nginx/Socket.pm line 1280.
   
   Error: led test 'TEST 1: get APISIX-EUREKA info from EUREKA - pattern "[error]" should not match any line in error.log but matches line "2021/02/20 04:48:45 [error] 9881#9881: *2 [lua] init.lua:441: http_access_phase(): failed to set upstream: no valid upstream node, client: 127.0.0.1, server: localhost, request: \"GET /eureka/apps/APISIX-EUREKA HTTP/1.1\", host: \"localhost\"" (req 0)
   # '
   #   at /home/runner/work/apisix/apisix/test-nginx/lib/Test/Nginx/Socket.pm line 1280.
   t/discovery/eureka.t ....................... 
   Failed 4/19 subtests 
   ```
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): master
   * OS (cmd: `uname -a`): ubuntu 18.04
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): source
   
   


----------------------------------------------------------------
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.

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



[GitHub] [apisix] spacewander commented on issue #3618: test unstable: t/discovery/eureka.t

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3618:
URL: https://github.com/apache/apisix/issues/3618#issuecomment-782572963


   Known issue. The sync of eureka info is triggered by a timer run after init_worker_by_lua phase.


----------------------------------------------------------------
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.

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



[GitHub] [apisix] spacewander closed issue #3618: test unstable: t/discovery/eureka.t

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3618:
URL: https://github.com/apache/apisix/issues/3618


   


----------------------------------------------------------------
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.

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