Skip to content
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: http service should not be started before etcd data is pulled #3370

Closed
hizzd opened this issue Jan 20, 2021 · 1 comment · Fixed by #3799
Closed

bug: http service should not be started before etcd data is pulled #3370

hizzd opened this issue Jan 20, 2021 · 1 comment · Fixed by #3799
Assignees
Labels
bug Something isn't working
Milestone

Comments

@hizzd
Copy link

hizzd commented Jan 20, 2021

Issue description

that when accessing immediately after apisix is started, it will return:

{"error_msg ": "404 Route Not Found"}

Is it because apisix did not pull the route data in etcd in time?
maybe the http service of apisix should be started after pulling etcd data.

Environment

  • apisix version: [docker] apache/apisix:2.2-alpine
  • OS: [docker] apache/apisix:2.2-alpine
  • OpenResty / Nginx version: [docker] apache/apisix:2.2-alpine
  • etcd enabled auto-tls.
  • apisix disable etcd.tls.verify.
@spacewander
Copy link
Member

This is a known issue. We plan to start pulling etcd data in the init_worker phase. To achieve this, we need to implement two preconditions first:

  1. add Chaos test so that we can cover such a big change
  2. allow lua-resty-etcd to use luasocket.

Maybe we can do this in version 2.5.

@spacewander spacewander self-assigned this Jan 29, 2021
@spacewander spacewander added the bug Something isn't working label Mar 8, 2021
@spacewander spacewander added this to the 2.5 milestone Mar 8, 2021
spacewander added a commit to spacewander/incubator-apisix that referenced this issue Mar 10, 2021
Fix apache#3370
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
spacewander added a commit to spacewander/incubator-apisix that referenced this issue Mar 10, 2021
Fix apache#3370
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
spacewander added a commit to spacewander/incubator-apisix that referenced this issue Mar 10, 2021
Fix apache#3370
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
tokers pushed a commit that referenced this issue Mar 12, 2021
Fix #3370
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants