Skip to content
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

Conditional creates on resources with identical identifiers across partitions results in a primary key violation #6033

Closed
lukedegruchy opened this issue Jun 20, 2024 · 0 comments · Fixed by #5983

Comments

@lukedegruchy
Copy link
Collaborator

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Enable partioning
  2. Create 2 partitions
  3. On the first partition POST a bundle with a patient with an identifier: (system: acme, value: 123) with an ifNotExists of identifier=acme|123
  4. POST the same bundle but on the second partition
  5. See error: HAPI-0550: could not execute batch [Unique index or primary key violation: "PUBLIC.PRIMARY_KEY_3 ON PUBLIC.HFJ_RES_SEARCH_URL

Expected behavior
The second bundle should insert correctly and both resources should be able to coexist on different partitions.

Environment (please complete the following information):

  • HAPI FHIR Version: Master

Additional context
This behaviour should be configurable to users can either opt in or out of supporting resources with duplicate identifiers across partitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant