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

Allow configuration of indexConfig/lockType in solrconfig.xml #3088

Open
ssciolla opened this issue Dec 20, 2023 · 0 comments
Open

Allow configuration of indexConfig/lockType in solrconfig.xml #3088

ssciolla opened this issue Dec 20, 2023 · 0 comments

Comments

@ssciolla
Copy link
Contributor

Expected Behavior

It should be possible to tweak the indexConfig/lockType in solr/solrconfig.xml using a substitution variable, as described in the Solr docs for the supported 8.10 version.

Current Behavior

The provided solrconfig.xml does not have indexConfig or lockType elements at all, so it's not possible to change this configuration without changing the solrconfig.xml file itself. This is possible, but it would be nice to not have our configuration diverge from what ships with ArchivesSpace releases.

Possible Solution

Simply add the following under config in solrconfig.xml:

  <indexConfig>
    <lockType>${solr.lock.type:native}</lockType>
  </indexConfig>

Adding a substitution variable would enable this to be changed via the SOLR_OPTS environment variable, without modifying the default of native.

Context

We have a use case in our Kubernetes deployment environment that requires the single lockType option to prevent Solr from being left in a bad state when a container exits improperly. Since we're pulling in a pre-built release of ArchivesSpace, we currently have to modify (using xmlstarlet) solrconfig.xml to include the proper settings.

Your Environment

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

1 participant