-
Notifications
You must be signed in to change notification settings - Fork 56
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
SUSHI output line too long for MySushiHandler #712
Comments
dotasek
added a commit
that referenced
this issue
Jun 29, 2023
* Improve the SUSHI output String buffer It now automatically increases size if the current SUSHI output line is larger than the buffer initial size, preventing an IndexOutOfBoundsException being thrown. The StringBuilder is reused in the same way the old byte array was. to preserve performance. It solves #712. * Make FSHRunner.MySushiHandler static * Use a string consumer in FSHRunner.MySushiHandler * Add tests for FSHRunner * Break tests into distinct cases + test error parse --------- Co-authored-by: dotasek <[email protected]> Co-authored-by: dotasek <[email protected]>
Fixed in #713. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using SUSHI 3 and the IG Publisher 1.3.18.
When building the IG ch-epr-mhealth (https://github.com/ehealthsuisse/ch-epr-mhealth), the IG Publisher hangs while running SUSHI.
Output logs when running SUSHI:
Output logs when running the IG Publisher:
The IG Publisher hangs after 'fhirVersion[0]: "4.0.1"' because the long output line goes through MySushiHandler, which only has a 256 bytes buffer, while the line is 414 characters long. It throws an IndexOutOfBoundsException, which seems not to be properly caught by the PumpStreamHandler or Executor.
The text was updated successfully, but these errors were encountered: