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

When the function is published, there will be a brief service unavailability #504

Open
Bryce-huang opened this issue Oct 25, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Bryce-huang
Copy link
Contributor

Bryce-huang commented Oct 25, 2023

Description
When the function is published, there will be a brief service unavailability
Environmental
Tell us what your cluster environment is like, e.g.

  • Operating System Information linux amd64
  • kubernetes version v1.24
  • OpenFunction version v1.10
  • knative 1.10.0

Expected behavior

There should be no problem with the service and 404 not found should not appear.

Actual behavior

Error getting active endpoint: revision.serving.knative.dev "serving-zhkdh-ksvc-5hmbq-20231025110554" not found

HTTP/1.1 404 Not Found
content-type: text/plain; charset=utf-8
x-content-type-options: nosniff
date: Wed, 25 Oct 2023 03:25:55 GMT
content-length: 112
x-envoy-upstream-service-time: 0
vary: Accept-Encoding
server: envoy

To Reproduce
Steps to reproduce the behavior:

  1. Create functions with Knative service normally
  2. Keep access the function
  3. Release a new version of the function

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@Bryce-huang Bryce-huang added the bug Something isn't working label Oct 25, 2023
@benjaminhuo benjaminhuo added the good first issue Good for newcomers label Oct 25, 2023
Bryce-huang added a commit to Bryce-huang/OpenFunction that referenced this issue Oct 25, 2023
OpenFunction#504
Signed-off-by: Bryce-Huang <44901318+Bryce-huang@users.noreply.github.com>

Signed-off-by: Bryce-Huang <44901318+Bryce-huang@users.noreply.github.com>
@Bryce-huang
Copy link
Contributor Author

This may be caused by the out-of-sync between the gateway and the function. When the function cleans up the old serving, there are still old serving requests coming in, resulting in not found.

Bryce-huang added a commit to Bryce-huang/OpenFunction that referenced this issue Oct 26, 2023
OpenFunction#504
Signed-off-by: Bryce-Huang <44901318+Bryce-huang@users.noreply.github.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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants