kibana/test/functional
Dzmitry Lemechko f6a90974e9
[es_archives] add 'auto_expand_replicas: 0-1' in index mappings (#162499)
Currently, if you try loading archive with index mappings not having
replica set into stateless ES, it won't work properly: you will get 503
error on calling `GET <index_name>/_stats`:
```
{
  "error": {
    "root_cause": [
      {
        "type": "no_shard_available_action_exception",
        "reason": null
      }
    ],
    "type": "search_phase_execution_exception",
    "reason": "all shards failed",
    "phase": "query",
    "grouped": true,
    "failed_shards": [
      {
        "shard": 0,
        "index": "indices-stats",
        "node": null,
        "reason": {
          "type": "no_shard_available_action_exception",
          "reason": null
        }
      }
    ]
  },
  "status": 503
}
```
In stateless replica is
[required](https://elastic.slack.com/archives/C037J0RKRAN/p1690218904855299)
in order to perform search requests (the "search shard").

This PR updates index mappings in es_archives with
`"auto_expand_replicas": "0-1"`, in order to be compatible with
stateless ES and so that we can re-use existing data sets rather than
creating new ones.

I checked with Core Team that we should fine to just adapt all mapping
files, but let me know if that doesn't work for you.
The same value is used to create the "real" SO
[indices](c79c09c3d0/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/constants.ts (L21))
in Kibana.
2023-07-26 14:30:54 +01:00
..
apps [Files management] Fix flaky functional test (#162146) 2023-07-18 07:40:51 -07:00
firefox [ftr] split dashboard_elements/config to speedup CI run (#160550) 2023-06-28 17:00:34 +02:00
fixtures [es_archives] add 'auto_expand_replicas: 0-1' in index mappings (#162499) 2023-07-26 14:30:54 +01:00
page_objects [Dashboard] Redesign clone experience (#159752) 2023-06-30 20:45:39 -07:00
screenshots [Dashboard] Unskip embed_mode screenshot tests (#160085) 2023-06-22 12:49:58 -07:00
services [Dashboard] Editing toolbar update (#154966) 2023-07-05 10:52:26 -07:00
config.base.js [Saved Objects] Adds config flag to toggle hiddenFromHttpApis SO types conditionally (#151512) 2023-02-22 07:59:50 -07:00
config.ccs.ts Getting started ccs tests (#144656) 2022-11-07 18:30:07 -05:00
config.edge.js [ftr] create config file for each tested plugin with firefox tests (#150873) 2023-02-11 00:51:57 +01:00
ftr_provider_context.ts [ftr] implement FtrService classes and migrate common services (#99546) 2021-05-25 09:25:09 -07:00
jest.config.js Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
README.md Fix dead links to functional testing docs (#85097) 2020-12-14 17:00:53 +01:00

Kibana Functional Testing

See our Functional Testing Guide