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

Stencil cache proto schema even after schema is deleted #180

Open
whoAbhishekSah opened this issue Oct 10, 2024 · 0 comments
Open

Stencil cache proto schema even after schema is deleted #180

whoAbhishekSah opened this issue Oct 10, 2024 · 0 comments

Comments

@whoAbhishekSah
Copy link
Member

Describe the bug

When I delete a proto-schema

curl -X DELETE http://stencil:8080/v1beta1/namespaces/my-proto/schemas/internal

and recreate the schema

buf build -v --path "internal/src" --as-file-descriptor-set -o "internal/generated/out.desc"
curl --fail-with-body -X POST http://stencil:8080/v1beta1/namespaces/pixxel-proto/schemas/internal --data-binary "@internal/generated/out.desc"

The old schema is still present when getting this schema.

curl http://stencil:8080/v1beta1/namespaces/pixxel-proto/schemas/internal -o any.desc
protoc --decode_raw < any.desc. (the output here still shows the old deleted schema)

Here the stencil URL http://stencil:8080/ is a Service which loads balances across multiple stencil pods.

This problem is solved after doing a rolling restart of Stencil pods.

Expected behavior

Stencil appears to be caching the schema even after the pods are deleted. The cache is local to the pod and not shared across all pods, hence old cache is appearing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant