hapifhir / hapi-fhir

🔥 HAPI FHIR - Java API for HL7 FHIR Clients and Servers
http://hapifhir.io
Apache License 2.0
2.05k stars 1.33k forks source link

Reindex OptimizeStorage with AllVersions not processing the history records for a resource if there is only one resource to process #6420

Closed mrdnctrk closed 3 weeks ago

mrdnctrk commented 3 weeks ago

When performing a reindex operation on a single resource with optimizeStorage set to ALL_VERSIONS, the version data is not moved from largeobject table to hfj_res_ver table.

To Reproduce Steps to reproduce the behavior:

Expected: res_text_vc column populated in hfj_res_ver table for all versions of the resource

Actual Outcome: res_text_vc column isn't populated for none of versions for the resource