Failfast when elasticsearch module has paginationType set to NONE

The paginationType NONE option needs to be honoured by the indexing
backend (see change 377794).
The elasticsearch backend doesn't support this configuration therefore
it throws ProvisisionException during the startup when such
configuration is detected. Here is the exception message:

  The 'index.paginationType = NONE' configuration is not supported
  by Elasticsearch

Notes:
* `ElasticConfigurationTest` was modified to ahere to modified
  constructor and to verify that `ProvisionException` is thrown when
  `NONE` pagination type is configured

Bug: Issue 291106652
Change-Id: I47c6b7f972e2b1d443cc5748386290dc10556f2a
4 files changed
tree: 30ebe3293a4903c13d1298fe63c7da3f7566efdf
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. Jenkinsfile
  5. LICENSE
  6. README.md
README.md

Index backend for Gerrit, based on ElasticSearch

Indexing backend libModule for Gerrit Code Review based on ElasticSearch.

This module was originally part of Gerrit core and then extracted into a separate component from v3.5.0-rc3 as part of Change-Id: Ib7b5167ce.

Note that, ElasticSearch source code is no longer Apache 2.0-licensed for versions 7.11 and newer. See ElasticSearch 2021 license change for more information.

How to build

This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.

Setup

See the setup instructions for how to install the index-elasticsearch module.

For further information and supported options, refer to the config documentation.

Integration test

This libModule runs tests like a Gerrit in-tree plugin, using Bazelisk. See the test instructions for more details.