Closed theGOTOguy closed 3 years ago
I returned to my computer with the docker container still running, ran the exact same curl
command as in my repro again, and it worked. Baffled, I repeated the entire repro again under STU3, and it worked a second time.
I am closing this issue for now, until I can get a better handle on why this is happening.
For any who may follow and be confused about the behavior of system-level $export
, it appears that there is some system-level resource in our production server that causes all export threads to crash and for the job to hang forever with no progress made on the server. It is not clear to me which resource this may be, and even using a custom build with the log level set to DEBUG the reason for the failure is not obvious. I tried to create a reproduction for this issue without success, thus I'm leaving the bug closed because I feel it would be unrealistic to expect anyone to fix it given the lack of a clear cause in logs and the lack of a repro.
Describe the bug
$export
works for FHIR R4, but does not return any data for FHIR DSTU3.To Reproduce
Start a vanilla FHIR JPA server in DSTU3 mode:
Use Synthea to generate some data.
Request an export:
Note the location of your
$export-poll-status
link after the above command. Wait a few minutes, then:There is no output key at all in the response JSON:
Expected behavior
The output key in the result of the
$export
operation should have included ndjson files containing the FHIR server's data. For instance, repeat the same procedure using R4.Start a vanilla FHIR JPA server in R4 mode:
Use Synthea to generate some data.
Request an export:
Note the location of your
$export-poll-status
link after the above command. Wait a few minutes, then:There is a while lot of ndjson exported:
Environment (please complete the following information):
Additional context We need to
$export
ndjson files as part of a deidentification pipeline. Currently we use the DSTU3 format, so the broken$export
in DSTU3 is a showstopping bug for us.