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

Race condition in snapget under heavy load? #378

Open
ewoutkramer opened this issue Oct 14, 2024 · 0 comments
Open

Race condition in snapget under heavy load? #378

ewoutkramer opened this issue Oct 14, 2024 · 0 comments

Comments

@ewoutkramer
Copy link
Member

This question was posed on Zulip:

https://chat.fhir.org/#narrow/stream/179171-dotnet/topic/Encountered.20an.20error.20while.20loading.20schema

When the Validate method gets hit under heavy load, it seems that we encounter the following error:

Encountered an error while loading schema 'http://hl7.org/fhir/StructureDefinition/Bundle': Invalid snapshot generator state (OnStartRecursion).
Cannot start a new snapshot generation. The previous operation has not finished.

I assume this is because there are multiple concurrent requests.

This sounds like the recursion-detection state in the snapgen is getting confused. This might be a threading issue indeed.

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

No branches or pull requests

1 participant