hapi-fhir-jpaserver-starter icon indicating copy to clipboard operation
hapi-fhir-jpaserver-starter copied to clipboard

Unintended requirement?

Open jkiddo opened this issue 2 years ago • 5 comments

I haven't investigated why - but if the reindex job isn't registrered ahead of installing IG's then the installing fails.

https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/a06c0b9ce47a05f0719edeaba2a325ff5bef8cce/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java#L199

-is this intended?

jkiddo avatar Jun 21 '23 11:06 jkiddo

Just a guess, but probably it's trying to kick off a reindex job. I'd bet it doesn't fail if that setting is disabled.

We should probably just temporarily disable that setting even if it's already set when installing IGs.

jamesagnew avatar Jun 21 '23 12:06 jamesagnew

I think I'm not following something, but doesn't it need to kick off a re-index job if the IG adds new search parameters?

XcrigX avatar Jun 21 '23 13:06 XcrigX

....probably.

i dunno, i've always kind of been of the opinion that reindex jobs should always be manually kicked off.. but obviously it's not ideal having search parameters installed that haven't yet been indexed.

jamesagnew avatar Jun 21 '23 14:06 jamesagnew

Yeah, mostly agree.. I added a PR (since merged) last year so that existing IGs would not be re-installed specifically to avoid that auto-reindex occurring if the server is re-started with the IG loader settings still enabled. But making the reindex always manual makes sense too. It can be an unpleasant surprise to have a reindex job kick off on a server with lots of data.

XcrigX avatar Jun 21 '23 14:06 XcrigX

Could a way forward be to explicitly have a config option to either enable or disable index jobs to run automatically? Problem then becomes to choose a sane default. If SearchParameters often pops up in installed IG's then it should be default, but I follow your arguments that it should usually be handled manually

jkiddo avatar Jul 12 '23 10:07 jkiddo

This issue is stale because it has been open 730 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 12 '25 03:07 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jul 17 '25 03:07 github-actions[bot]