GitLab Elasticsearch integration fails with Elasticsearch 6.1-6.3
Bug
6.3
you see the following error when creating an index:
When running Elasticsearch sudo gitlab-rake gitlab:elastic:create_empty_index
rake aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Custom Analyzer [code_analyzer] failed to find filter under name [remove_duplicates]"}],"type":"illegal_argument_exception","reason":"Custom Analyzer [code_analyzer] failed to find filter under name [remove_duplicates]"},"status":400}
6.1
you see the following error:
When running Elasticsearch sudo gitlab-rake gitlab:elastic:recreate_index
Index/alias 'gitlab-production' was not found
rake aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.highlight.max_analyzed_offset] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"}],"type":"illegal_argument_exception","reason":"unknown setting [index.highlight.max_analyzed_offset] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"},"status":400}
Details
In the following MRs:
We broke support support for these previous version by introducing features that are only available in 6.4+
and 6.2+
.
Solution
Since we're planning on removing support for 6.x
soon anyway we will just update the docs to reflect that these versions are unsupported.