Skip to content

Bug in Partitioning with STORE_AND_INSTALL Package installations #7375

@patrick-werner

Description

@patrick-werner

Describe the bug
When partitioning is enabled in the JPAServer Starter project and a package is installed using PackageInstallationSpec.InstallModeEnum.STORE_AND_INSTALL, the following error occurs:

HAPI-1286: Error installing IG de.basisprofil.r4#1.5.4: ca.uhn.fhir.rest.server.exceptions.InternalErrorException: HAPI-1315: System call is attempting to write a non-partitionable resource to a partition! This is a bug!

This issue occurs because the partition is not populated during the package installation process, leading to the error when attempting to write a non-partitionable resource to a partition.

To Reproduce
Steps to reproduce the behavior:

Enable partitioning in the JPAServer Starter project.
Install a package with PackageInstallationSpec.InstallModeEnum.STORE_AND_INSTALL, containing a relevant resource, e.g. CodeSystem

Expected behavior
The package should be installed successfully without errors into the default partition.

Environment (please complete the following information):

  • HAPI FHIR Version: 8.4.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions