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

Elasticsearch: files conflicts (syn, stopwords) between different versions #58

Closed
agazzarini opened this issue Sep 25, 2018 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@agazzarini
Copy link
Member

[ERROR] Failed to execute goal io.sease:rre-maven-elasticsearch-plugin:6.3.2:evaluate (default) on project search-configs: Execution default of goal io.sease:rre-maven-elasticsearch-plugin:6.3.2:evaluate failed: java.lang.IllegalArgumentException: IOException while reading stopwords_path: /tmp/config/en_stopwords.txt -> [Help 1] [ERROR]

The error above is caused by a situation when synonyms and stopwords are not hard-coded within the index shape but, throught the *_path attribute, are defined using external files.

@agazzarini agazzarini added the bug Something isn't working label Sep 25, 2018
@agazzarini agazzarini added this to the 1.0 milestone Sep 25, 2018
@agazzarini agazzarini self-assigned this Sep 25, 2018
@agazzarini
Copy link
Member Author

Issue has been fixed: the Elasticsearch platform binding copies all the configuration files found in the config directory to a tmp path.home. On top of that:

  • each file is renamed using the owning version prefix, so if two versions uses the same filename (e.g. stopwords.txt) we don't have any collision.

  • the index-shape is rewritten in order to correctly reference the new renamed files (e.g. v1.5_stopwords.txt)

@agazzarini agazzarini modified the milestones: 1.0, 1.1 Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant