How to plan the HAPI FHIR upgrade from 8.10 to 8.12 when partition methods are removed
A team running a partitioned HAPI FHIR JPA server with custom partition interceptors must move from 8.10 to 8.12, and the main risk is code that calls default-partition methods the releases remove. The work is inventory, replacement and partitioned testing, in that order. Any custom interceptor, provider or batch job that touches partition resolution or default partition handling is a candidate for failure, and a compile success alone does not prove the runtime behavior is correct, so the inventory should cover every module that depends on the partition APIs.
The supported path runs through each release in order, so plan 8.10 to 8.11 and then 8.11 to 8.12 as separate steps with their own verification rather than jumping straight to the target. The exact removals must be confirmed from the 8.10, 8.11 and 8.12 release notes in the hapifhir/hapi-fhir releases page, because the set of removed methods and their replacements is what determines the code changes. Record each removed signature, the replacement named in the notes, and the file that calls it, and ask the maintainers or your Smile CDR contact to confirm any replacement that the notes leave ambiguous.
Test on a copy of the production database engine. The JPA server runs on PostgreSQL or Microsoft SQL Server in production, so partitioned test runs should use the same engine, the same partition mode and realistic data spread across more than one partition. Confirm that reads, writes, searches and bulk operations resolve to the intended partition for each tenant or region, and that requests without a partition identifier behave as your interceptors expect after the default-partition changes. Keep the test results with the change record, since they become the evidence for the maintenance window and the rollback decision.
What changes between 8.10 and 8.12 that affects partitioned servers
This table compares the changes between HAPI FHIR 8.10 and 8.12 that affect partitioned servers, the impact of each change and the action to take before upgrading. Read each row as a checklist item covering your custom partition code, your database and your runtime. The removed default-partition methods carry the highest risk, so start the inventory there and retest partition placement before any production change.
| Change | Impact | Action needed |
|---|---|---|
| Removed default-partition methods | Custom partition interceptors that call removed methods stop compiling or fail at runtime | Copy each removed method name from the release notes for 8.10, 8.11 and 8.12, then search the codebase for every name |
| Compile failures in custom interceptors | The build breaks on the upgrade branch, and failures may surface only after a clean rebuild | Compile custom interceptors against the 8.12 libraries and fix each call site before any deployment |
| Runtime failures in request paths | Partition resolution errors may appear only on specific operations such as create, read or search | Write tests for each resource type and operation your interceptors handle, including a non-default partition |
| Partition placement behavior | Resources may land in a different partition or resolve differently after the upgrade | Record partition IDs for a fixed set of test resources before and after the upgrade, then compare the results |
| Schema migrations in each release | Database changes run between 8.10 and 8.12, and some may be slow on large tables | Read the migration notes for each version, take a backup, and rehearse on a copy of production |
| Java runtime for 8.12 | The JDK version needed for 8.12 may differ from your current runtime; the supplied fact only confirms JDK 17 for 8.2.0 | Confirm the 8.12 JDK requirement in the HAPI FHIR versions documentation before changing build or runtime images |
| Container image and application server | Base images, the servlet container and the hapiproject/hapi image tag may need updates | Pin the exact 8.12 image tag, check the container requirements, and rebuild custom images |
Decision path from custom partition inventory to production cutover
The path starts with an inventory of every custom partition interceptor, then checks the release notes for removed default-partition methods. Code that calls no removed methods goes straight to a build against the target release. Code that does call them is changed first, then built and run through partitioned tests. A failed test sends the work back to the replacement step. Only passing code moves on to a database backup, a rehearsal on a copy of production, and the cutover. Each hand-off is a point to check that no partition behavior has changed.
Steps from partition code inventory through rehearsal to cutover, with a test-failure loop.
What to inventory and back up before changing partition code
Partition code is the part of a HAPI FHIR 8.10 to 8.12 upgrade where a mistake can expose one tenant's data to another, so the work starts with knowing what exists. The cards below cover the code, the data map, the recovery point, the test environment, the build and the sign-off that together make the upgrade reversible and reviewable.
Inventory custom partition interceptors
List every custom interceptor and provider that calls partition-related logic, and record the class, the package, and the place where it is registered, whether in Spring configuration, a servlet context or a starter override. Removed default-partition methods are often called from places that are not obvious, such as search narrowing, consent checks or batch jobs, so search the whole codebase and every deployed artifact, not only the main server module. Each entry should name the owning team so that replacement work has a clear reviewer.
Partitioning docsMap partitions to the data they hold
Write down which partitions exist, what each one is for, and which resource types and clients write to it. HAPI FHIR partitioning places each resource in a partition that can represent a tenant, a separate data source or a regional grouping, so the map must state which of those models your deployment uses. Include shared or default content that several tenants read. This map is the reference you will use to judge whether a replacement method returns the same partition for the same request.
Back up and restore-test the database
Take a full database backup before any schema migration, and restore it to a separate host to confirm that it is usable. A backup that has never been restored tells you little about recovery time or completeness. Record the backup identifier, the time it was taken, and the HAPI FHIR version it was made under, so that a rollback has a known point. Confirm that the restore includes all partition-related tables and that the restored copy starts against the old server version.
Build a partitioned test environment
Create a non-production environment that matches production partition settings, including partition mode, the number of partitions, the interceptor registration order and the database engine. Load a representative copy of partitioned data, or a sanitized extract that keeps the same partition assignments. Run the same cross-partition read and write tests against it before and after the change. A test that uses only one default partition will not reveal isolation failures that appear when two partitions are active.
Pin the HAPI FHIR version in the build
Record the current HAPI FHIR version in your build files, and confirm that every module that depends on it resolves to the same version. Mixed versions across the server, the JPA starter and custom modules are a common source of missing-method errors after an upgrade. Check the release notes for 8.10, 8.11 and 8.12 against your inventory before changing any version number. Keep the old version pinned in a branch so that a rollback can rebuild the previous artifact.
HAPI FHIR versionsName the isolation sign-off owner
Assign one named person who approves that partition data remains isolated after the change. This person should not be the developer who wrote the replacement code, and should be able to review the partition map and test results. Agree in advance what evidence they need, such as the cross-partition test report and the restore test result, and who can stop the release if the evidence is incomplete. Without a named owner, sign-off tends to fall to whoever is available at the end of the change window.
How to sequence the 8.10 to 8.12 upgrade with rollback points
This sequence moves a partitioned HAPI FHIR 8.10 deployment to 8.12 without replacing removed partition calls in production first. Each step ends with a check, and each check leaves a rollback point you can return to before cutover.
Freeze and record the 8.10 baseline
Before any code changes, record the exact HAPI FHIR version, the server image tag, the Java runtime, the database engine and version, and the partition configuration in your change record. Take a full database backup and restore it once to a scratch database to confirm the backup is usable. The platform or database owner completes this step. It is done when the baseline record is signed off and a restore test has succeeded. Rollback point: the 8.10 image and its configuration stay in your registry and source control, and the verified backup is kept until the upgrade closes.
Replace removed partition calls on a branch
A developer lists every custom partition interceptor that calls a default-partition method, then reviews the 8.12 release notes on the GitHub releases page for each removed method and its replacement. Make the replacements on a separate branch and build against the 8.12 libraries in CI. Confirm each mapping against the release notes, and have a second engineer review the diff. It is done when the branch compiles cleanly against 8.12 with no references to removed methods. Rollback point: main stays on 8.10, so discarding the branch changes nothing in production.
Run the schema migration on a restored copy
Restore the most recent production backup into a non-production database and run the 8.12 schema migration against that copy using hapi-fhir-cli. Confirm the database dialect and partition mode flags against the migration documentation before running it, and capture the full output. The database owner runs this step and records the start time, end time and any warnings. It is done when the migration completes without errors and the migrated schema is saved. Rollback point: the copy is disposable, and production is untouched because the migration never ran there.
Run partitioned functional tests with negative cases
Point the branch at the migrated copy and run a test suite that creates resources in each partition, then searches, reads and updates them within that partition. Add negative tests that attempt a read or write against a partition the caller is not scoped to, a write with no partition supplied, and a search that crosses partitions. The QA or platform engineer owns the suite. It is done when every positive and negative test passes and any failure has a documented fix. Rollback point: a failing test blocks promotion, and the fix stays on the branch until the suite passes again.
Verify partition placement on staging
Deploy the 8.12 image and the branch build to a staging server that uses the migrated copy. Write sample resources through the API for each partition, then query the database directly to confirm each row landed in the expected partition. Read each sample back through its partition scope to confirm it is visible there and hidden elsewhere. It is done when a written table of sample writes shows expected and observed partitions matching for every case. Rollback point: staging can be redeployed to the 8.10 image against the same copy, which lets you rehearse the rollback before production.
Cut over with a tested rollback path
Take a fresh production backup immediately before the change window and record its identifier. Deploy the 8.12 image, then run smoke tests for each partition and check the server health endpoints. Confirm with the release notes whether the 8.10 image can run against the migrated schema. If it cannot, a database restore is your only rollback, so the restore must be tested beforehand. The operations lead signs off when smoke tests pass for every partition. Rollback point: redeploy the recorded 8.10 image and, if the schema requires it, restore the pre-cutover backup.
Why partition code can fail quietly after the upgrade
A compile error is the easy failure in partition code after the 8.10 to 8.12 upgrade. The harder case is a replacement method that builds, starts and serves requests while writing resources into the wrong partition. Wrong placement is a data isolation failure, not a build failure, and nothing in the normal start-up checks will reveal it. The HAPI FHIR JPA server places each resource in a partition, and custom partition interceptors are where your team decides which partition a request or resource belongs to. If the replacement for a removed default-partition method resolves a partition differently from the method it replaces, every new write can land in a partition your tenancy model never intended.
For multitenant or regional deployments, partition placement is the isolation boundary. A tenant's data should be stored in that tenant's partition and read only from it. Tests should therefore assert, for each resource type your interceptors handle, that a create or update with a given tenant or region context lands in the intended partition. Check the stored partition, not just the HTTP response code. A second test should confirm that a request authenticated for one partition cannot read, search or retrieve resources from another partition, including through search parameters, history and references that cross partitions. Run both checks against a copy of the partitioned schema, using realistic partition identifiers from your own configuration.
Before you write the replacement code, read the release notes for the target version and confirm how the new API handles default partition behavior. Do not assume it matches the removed method, including for requests that carry no partition context. Record the exact behavior you verified, and ask the HAPI FHIR maintainers or your support provider to confirm anything the notes leave open. Treat that confirmation as an acceptance criterion for the upgrade, and keep the partition isolation tests in your regression suite so they run again on every future upgrade.
Test plans by partition model: multitenancy, data sources and regions
In a multitenant deployment, each tenant's resources sit in their own partition, and the main risk is one tenant reading or writing another tenant's data. After the removal of default-partition methods, any custom partition interceptor that falls back to a default partition when it cannot resolve a tenant can start mixing data or failing quietly. Test that the interceptor resolves the tenant on every code path, including batch, transaction bundles and search with includes.
- Cross-tenant read denial: Create resources in two tenants, then confirm that searches, reads and history calls from tenant A never return tenant B resources, including through chained and _include parameters.
- Write routing: Post and update resources for each tenant and confirm each lands in the correct partition, with no resource created in a default or null partition.
- Transaction bundles: Run mixed-tenant transaction and batch bundles and confirm the interceptor rejects or routes each entry as designed.
- Failure behavior: Send requests with missing or invalid tenant headers and confirm they are refused rather than falling back to a shared partition.
- Volume checks: Run isolation and bundle tests with production-like tenant counts and row volumes, since index and search behavior changes with data size.
Confirm that every tenant-scoped test runs against a copy of production data, not an empty schema.
When partitions map to separate data sources, resources in one partition may reference resources held in another. Removed default-partition methods can change which data source a request reaches when no partition is specified, so references may resolve incorrectly or break. Test references across the boundary and the behavior of each data source's connection and migration state.
- Cross-source references: Create resources in one data source that point to resources in another, then confirm reference resolution, includes and reverse lookups behave as expected.
- Default routing: Remove the partition identifier from test requests and confirm the server returns a clear error instead of silently using a different data source.
- Per-source migrations: Run the schema migration on each data source separately and check that each one completes and reports the expected version.
- Connection pool isolation: Confirm that load on one data source does not starve connections needed by another.
- Full-scale reference data: Test reference resolution with the number of cross-source links expected in production, because the failure rate often appears only at volume.
Confirm that each data source has its own backup and restore test, since a restore of one source does not restore the others.
When partitions group data by region, the test goal shifts from isolation to routing and residency. Requests from a region should reach the correct partition, and data should stay where the organization's residency rules require. Confirm the rules with your legal and compliance owners before testing, since the test cases depend on them.
- Regional routing: Send requests tagged with each region and confirm that writes and reads land only in the matching partition.
- Residency checks: Inspect storage location for records created in each region and confirm they do not replicate or cache outside the approved area, using the replication setup in your environment.
- Fallback behavior: Test requests with no region or an unknown region, and confirm the server refuses them rather than defaulting to another region's partition.
- Failover paths: Simulate loss of a regional database and confirm that routing does not send traffic to another region unless policy allows it.
- Latency and load: Run regional traffic at production-like volumes and measure whether routing changes add delay in any region.
Confirm with your compliance team which residency rules apply and what evidence they need from each test run.
What makes a partitioned HAPI FHIR upgrade take longer
This table lists the drivers that push effort up or down when moving a partitioned HAPI FHIR JPA server past the 8.10 partition API removals. Read each row as a question to answer about your own deployment before estimating the work with a team or partner. The main takeaway is that custom partition code, partition layout and the size of the restored copy usually matter more than the version jump itself.
| Driver | Effect on effort | What to check |
|---|---|---|
| Custom partition interceptors and providers | Each interceptor or provider that calls a removed default-partition method needs code changes, review and tests. Effort rises with the count and with how deeply partition logic is woven through request handling. | List every class that references partition IDs, the partition interceptor hooks and any custom providers. Compare each call against the 8.10 to 8.12 release notes. |
| Number of partitions and their meaning | Partitions that map to tenants or regions require more test cases, since each mapping rule must keep returning the same data scope after the change. | Confirm whether partitions represent tenants, data sources or regions, and document the routing rule for each one. |
| Custom database indexes or migrations | Local indexes or hand-written schema changes can conflict with migrations shipped in the new release and add review and rollback steps. | Compare the live schema against the vendor migration history and record every non-standard index or script. |
| Data volume on the restored copy | Migrations and reindexing run longer as row counts grow, so a large restored copy usually extends the rehearsal and the maintenance window. | Measure resource and partition row counts on a restored copy of production and time a full rehearsal run on that copy. |
| Application servers or containers to redeploy | Every node running the server, including Docker, Kubernetes and WAR deployments, must be updated in a controlled order, which adds coordination and verification work. | Inventory all running instances, their images or WAR versions and the rollout order, and confirm how each one returns to service. |
| Staging environment with partitions | A staging environment that mirrors the partition layout reduces rework by exposing partition-specific failures before production. Without it, testing shifts into the maintenance window. | Confirm that staging holds the same partition IDs, interceptor configuration and a recent data copy, and that partitioned test cases exist. |
Questions teams ask before upgrading HAPI FHIR partitions
What drives the cost and effort of a HAPI FHIR partition API upgrade?
The effort depends mostly on how much custom partition code you run and how many partitions your deployment uses. Custom partition interceptors that call the removed default-partition methods need to be found, rewritten, and tested, and the amount of code and the number of call paths set the size of that work. Testing against partitioned data adds time, as does any database work that the upgrade requires. Your organization typically pays internal engineers for code review and environment access, and a partner, if you hire one, is paid for the scoped analysis, code changes, test runs and handover. Ask for the quote to split one-time work (code changes, rehearsal, cutover) from recurring work (retainers for upgrades and testing). Confirm the removed methods and their replacements with the HAPI FHIR releases notes for the version you target.
Can our own engineers do the partition API upgrade in house?
Yes, if your team already owns the custom interceptors and can run a Java and HAPI FHIR JPA server locally. The skills needed are Java development, familiarity with Spring-style configuration, experience with the HAPI FHIR partitioning model documented in the HAPI FHIR partitioning guide, SQL for checking partition data, and the ability to run a realistic test environment. The hard part is usually not the code change itself but proving that every request path still resolves to the correct partition. Teams without these skills, or with few engineers available for the window, should weigh an outside partner. Confirm your Java runtime and build tooling against the version requirements in the release notes before you plan.
What do we need to provide for the upgrade work?
A partner or internal team needs four things to start: read access to the custom code that touches partitions, a restored copy of a production or production-like database, a test environment that matches your runtime, and a named owner who can answer questions about tenant and partition rules. Partition logic often encodes business rules, such as which tenant or region a resource belongs to, and those rules are not visible in the code alone. Without the owner, the work stalls on guesses. Ask for a list of required access, data handling terms for any copy of patient data, and the environments that will be used for rehearsal before anything reaches production.
Should we choose a fixed-scope engagement or upgrade internally?
Choose a fixed-scope engagement when the custom partition code is large, the team lacks capacity in the release window, or the deployment serves several tenants whose data separation must be proven. Choose an internal upgrade when the custom code is small, the engineers already know the partition model, and you can rehearse on a copy first. A fixed scope works best when the written statement of work lists the interceptors in scope, the environments used for testing, the rehearsal steps, the cutover support and the acceptance criteria. Any work that depends on unknowns, such as undocumented partition rules, should be marked as a separate phase so the price stays tied to what is actually known.
Can the partition API upgrade run without downtime, and what does the database affect?
Whether a zero-downtime upgrade is possible depends on the database, the schema changes in the target release, and how your load balancer drains instances. Schema migrations can lock tables or take longer than expected on large datasets, so the database size and the database engine (PostgreSQL or Microsoft SQL Server are the supported production options named in the JPA server starter) both matter. Confirm in the release notes whether the migration is lightweight or heavyweight and whether it changes partition-related tables. Plan a maintenance window until a rehearsal on a copy of production shows the migration time and any locking behavior.
What should we ask for in a written quote for this upgrade?
Ask for a quote that lists each in-scope interceptor and each removed method it uses, the replacement approach for each, and the test cases that prove partition isolation. Ask which environments will be used, who restores and handles the database copy, how patient or tenant data is protected in those environments, and what the rehearsal and cutover steps are. Request the acceptance criteria, the rollback plan, the support period after cutover, and any recurring retainer for later upgrades. Also ask what is excluded, such as application changes outside partition logic, and what triggers a change order. A quote should follow from the written scope, and DeployOpen does not publish a price list.
How DeployOpen scopes, tests and supports a partitioned HAPI FHIR upgrade
DeployOpen treats the move from HAPI FHIR 8.10 to 8.12 as a partition-aware upgrade rather than a version bump. The work starts with an inventory of custom partition interceptors and the partition configuration they depend on, then moves through replacement code, rehearsal on a copy of the partitioned database, and a handover the client's own team can run.
How we scope
- Inventory every custom partition interceptor and identify calls to default-partition methods removed in 8.10 to 8.12.
- Record which partitions, tenants or regions the deployment uses and which of them must keep working during the upgrade.
- Agree the scope, deliverables and timelines in writing before work starts, since most engagements are fixed-scope.
How we build
- Replace removed default-partition calls with explicit partition handling, and document the behavior each replacement preserves.
- Run the upgraded server against a copy of the partitioned database to check schema migration steps and partition-aware searches.
- Test authorization and consent interceptors that read partition context, so tenant boundaries still hold after the change.
How we hand over
- Deliver a written record of each changed interceptor, the reason for the change, and the test evidence behind it.
- Provide a rollback plan that names the database backup taken before migration and the steps to restore the previous build.
- Walk your platform and integration engineers through the runbook so they can repeat the rehearsal before future upgrades.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer for partitioned deployments that change often.
- Re-run partition regression tests when you add a tenant, change a region grouping or update HAPI FHIR again.
- Confirm the supported Java version and application server requirements for each target release with the HAPI FHIR versions documentation before scheduling work.

