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

Unintended requirement? #554

Open
jkiddo opened this issue Jun 21, 2023 · 5 comments
Open

Unintended requirement? #554

jkiddo opened this issue Jun 21, 2023 · 5 comments

Comments

@jkiddo
Copy link
Collaborator

jkiddo commented Jun 21, 2023

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

jobDefinitionRegistry.addJobDefinitionIfNotRegistered(reindexJobParametersJobDefinition);

-is this intended?

@jamesagnew
Copy link
Contributor

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.

@XcrigX
Copy link
Contributor

XcrigX commented Jun 21, 2023

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?

@jamesagnew
Copy link
Contributor

....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.

@XcrigX
Copy link
Contributor

XcrigX commented Jun 21, 2023

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.

@jkiddo
Copy link
Collaborator Author

jkiddo commented Jul 12, 2023

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

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

No branches or pull requests

3 participants