commit | 880902c1c1c96784dbb4caa9bac11dc7b6c38eca | [log] [tgz] |
---|---|---|
author | Prudhvi Akhil Alahari <prudhvi.alahari@linaro.org> | Mon Jun 27 17:22:28 2022 +0530 |
committer | Prudhvi Akhil Alahari <prudhvi.alahari@linaro.org> | Mon Jul 18 11:35:23 2022 +0530 |
tree | d32a09bc8e3ccd27a63d477575d0f7cce6d0060f | |
parent | 4f375d530bac60c9b2c14e37521f59d7f9a4ab2b [diff] |
Use errors output field to determine _bulk API failure Elastic search _bulk API's response HTTP status code 200 does not imply that the request was successful. Instead, depend on 'errors' boolean from response body [1]. Also add tests to illustrate this behaviour. [1] https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docs-bulk.html#bulk-api-response-body Change-Id: I6b76398d64efc15803b9a1b30e4d88ae4b1bdb2a
Indexing backend libModule for Gerrit Code Review based on ElasticSearch.
This module was original part of Gerrit core and then extracted into a separate component from v3.5.0-rc3 as part of Change-Id: Ib7b5167ce.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
Install the index-elasticsearch.jar into the $GERRIT_SITE/lib
directory.
Add the index-elasticsearch module to $GERRIT_SITE/etc/gerrit.config
as follows:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ElasticIndexModule
When installing the module on Gerrit replicas, use following example:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ReplicaElasticIndexModule
For further information and supported options, refer to config documentation.
Gerrit acceptance tests allow the execution with an alternate implementation of the indexing backend using the GERRIT_INDEX_MODULE
environment variable.
bazel test --test_env=GERRIT_INDEX_MODULE=com.google.gerrit.elasticsearch.ElasticIndexModule //...