-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Improve partition support for Bulk Patch operation #7406
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
Open
jamesagnew
wants to merge
39
commits into
master
Choose a base branch
from
ja_20251106_megascale_bulk_terminology_update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
fdcbbcb
Work on bulk update
jamesagnew 74c9144
Add bulk patch partitioning
jamesagnew e6e9efd
Merge branch 'rel_8_6' into ja_20251106_megascale_bulk_terminology_up…
jamesagnew 27d6054
Bump to 8 7 (#7322)
jdar8 1572faf
Check for null before removing 'max' parameter (#7242)
jkiddo 2b87b9f
[7332] Fix $mdm-query-links in partition mode (#7333)
YalingPeiS bf1e6c2
Mergeback 1 rel 8 6 (#7360)
jdar8 0c64846
Ensure streaming queries don't have limit clauses (#7382)
michaelabuckley f99cfb1
update search docs for accuracy (#7383)
emas12321 edbec01
Add debug logging to migrator. (#7381)
michaelabuckley 644840a
7386 icd10cmloader is not creating required extensions for concepts (…
IanMMarshall f464ab6
7385 fix 401 unauthorized response does not include operation outcome…
volodymyr-korzh f8c1eda
Mergeback rel 8 4 1 (#7398)
jdar8 f60ea28
STORAGE_TRANSACTION_PROCESSING-doesn't-pass-ServletRequestDetails (#7…
elavy-harris f9e2e82
7217 with rel 8 6 (#7337)
TipzCM 52966b0
Fix Encounter $everything not working in REQUEST_TENANT partitioning …
jmarchionatto 153d3b0
bump hapi
f2341f8
bump hapi
05e0408
versioning
9769f9b
Merge branch 'rel_8_6' into ja_20251106_megascale_bulk_terminology_up…
jamesagnew a3bc1ba
Cleanup
jamesagnew 63c1f4e
Work on tests
jamesagnew 93dc059
Work on test fixes, about to add TX api for megascale tx service
jamesagnew c645678
Get patch working on megascale
jamesagnew 4fd9d53
Bump to 8 7 (#7322)
jdar8 79a6172
[7332] Fix $mdm-query-links in partition mode (#7333)
YalingPeiS 5fedb64
[7332] Fix $mdm-query-links in partition mode (#7333)
YalingPeiS dc5d34a
Test fix
jamesagnew 28b3f31
Test fixes
jamesagnew 345474c
Spotless
jamesagnew 5b1e4ab
Build fixes
jamesagnew dce3d3f
Merge branch 'ja_20251106_megascale_bulk_terminology_update' of githu…
jamesagnew 8dedff3
Add troubleshooting logging
jamesagnew 7026814
Add troubleshooting logs
jamesagnew 4c11ac7
Add troubleshooting
jamesagnew a1c562e
Test fixes
jamesagnew 938d0e4
Merge branch 'master' into ja_20251106_megascale_bulk_terminology_update
jamesagnew fac62f8
Add changelog
jamesagnew d499e39
Fix build
jamesagnew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...in/resources/ca/uhn/hapi/fhir/changelog/8_8_0/7406-add-partition-param-to-bulk-patch.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| type: add | ||
| issue: 7406 | ||
| title: "A new parameter has been added to the `$hapi.fhir.bulk-patch` and | ||
| `$hapi.fhir.bulk-patch-rewrite-history` operations which can be used to | ||
| explicitly specify the partition(s) to use when applying these | ||
| operations. This change also generally improves support for using these | ||
| jobs in a partitioned environment." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ | |
| import ca.uhn.fhir.jpa.dao.data.IResourceTableDao; | ||
| import ca.uhn.fhir.jpa.model.cross.IResourceLookup; | ||
| import ca.uhn.fhir.jpa.model.dao.JpaPid; | ||
| import ca.uhn.fhir.jpa.partition.IRequestPartitionHelperSvc; | ||
| import ca.uhn.fhir.jpa.searchparam.SearchParameterMap; | ||
| import ca.uhn.fhir.rest.api.server.SystemRequestDetails; | ||
| import jakarta.annotation.Nonnull; | ||
|
|
@@ -60,6 +61,9 @@ public class ResourceVersionSvcDaoImpl implements IResourceVersionSvc { | |
| @Autowired | ||
| IIdHelperService<JpaPid> myIdHelperService; | ||
|
|
||
| @Autowired | ||
| IRequestPartitionHelperSvc myRequestPartitionHelperSvc; | ||
|
|
||
| @Override | ||
| @Nonnull | ||
| public ResourceVersionMap getVersionMap( | ||
|
|
@@ -76,6 +80,13 @@ public ResourceVersionMap getVersionMap( | |
| return ResourceVersionMap.fromIdsWithVersions(fhirIds); | ||
| } | ||
|
|
||
| @Override | ||
| public ResourceVersionMap getVersionMap(String theResourceName, SearchParameterMap theSearchParamMap) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question: why add this method? Is there a reason the callers can't provide the parititon scope? |
||
| RequestPartitionId requestPartition = myRequestPartitionHelperSvc.determineReadPartitionForRequestForSearchType( | ||
| null, theResourceName, theSearchParamMap); | ||
| return getVersionMap(requestPartition, theResourceName, theSearchParamMap); | ||
| } | ||
|
|
||
| /** | ||
| * Retrieves the latest versions for any resourceid that are found. | ||
| * If they are not found, they will not be contained in the returned map. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice change! Passing partition through makes shard search much more practical.