FHIR Chat · Multithreading issues with Validate function · dotnet

Stream: dotnet

Topic: Multithreading issues with Validate function


view this post on Zulip Richard Kavanagh (Apr 02 2020 at 14:26):

We seem to be experiencing issues with the validate function within the API.
When we run validations in a serial fashion we get different results to when we run the same content through validations happening in parallel. Has anyone experienced any multithreading issues with the validate function within the API?

view this post on Zulip Marco Visser (Apr 02 2020 at 15:56):

The Validator in fhir-net-api is not thread safe. So I can imagine that running it in parallel will cause some errors, or at least some anomalies.

view this post on Zulip Richard Kavanagh (Apr 02 2020 at 16:21):

Thanks @Marco Visser - that confirms what we have observed. I think we are going to have to have a bit of a rethink on our approach in this area...

view this post on Zulip Brian Postlethwaite (Apr 03 2020 at 01:03):

You should be able to run multiple instances of the validator in parallel though...
One issue in older versions we had was a race condition from the Source resolver.

view this post on Zulip Brian Postlethwaite (Apr 03 2020 at 01:03):

(we fixed it in our fork, and I believe is in the latest versions, don't recall how far back, but likely post 1.4)

view this post on Zulip Marco Visser (Apr 03 2020 at 06:58):

Could it be this issue 556 Brian? If yes, then is has been solved indeed in the past.

view this post on Zulip Brian Postlethwaite (Apr 03 2020 at 09:22):

It was a different issue, searching for ele-1 would probably find it. I'm sure it was in the latest version, just now sure how far back.
It was the locking on SetAnnotation that resolved the one I found.

view this post on Zulip Marco Visser (Apr 03 2020 at 09:27):

Ah ok. That was this issue 1065, which was resolved in latest version (1.6.0).

See also the release notes

view this post on Zulip Brian Postlethwaite (Apr 05 2020 at 00:42):

Yup, that's right.


Last updated: Apr 12 2022 at 19:14 UTC