Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed

* Fixed spelling error in measurement unit "milliliter".
* Add thread-safe synchronisation when merging and uncompressing a large EHR Extract bundle to avoid a race condition
occurring where multiple threads may attempt to merge and uncompress the same EHR Extract bundle at the same time.
This could result in a corrupted EHR Extract bundle.

## [3.3.1] - 2026-06-01

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ public void handleMessage(InboundMessage inboundMessage, String conversationId)
checkAndMergeFileParts(inboundMessage, conversationId);
nackAckPreparationService.sendAckMessage(payload, conversationId, migrationRequest.getLosingPracticeOdsCode());

// merge and uncompress large EHR message
if (inboundMessageMergingService.canMergeCompleteBundle(conversationId)) {
inboundMessageMergingService.mergeAndBundleMessage(conversationId);
synchronized (this) {
// merge and uncompress large EHR message
if (inboundMessageMergingService.canMergeCompleteBundle(conversationId)) {
inboundMessageMergingService.mergeAndBundleMessage(conversationId);
}
}

} catch (WebClientRequestException | ConnectionException | MhsServerErrorException e) {
throw e;
} catch (ParseException | ValidationException | SAXException e) {
Expand Down
Loading