Skip to content

Commit

Permalink
Preserve pre-existing index templates (#1900).
Browse files Browse the repository at this point in the history
When opening an `EsMetricsStore`, it creates the index template if any of following:
 - the index template doesn't exist
 - `reporting/datastore.overwrite_existing_templates` option is `true`

It will preserve existing template on all the other cases.
It adds a new method for getting boolean configuration options.
It logs a warning when an existing index template is being replaced.
It highlights index template differences between the existing one (if any) and the
configured one (according to rally.ini).
  • Loading branch information
fressi-elastic committed Feb 23, 2025
1 parent d0aa512 commit fef436a
Show file tree
Hide file tree
Showing 26 changed files with 846 additions and 629 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ repos:
"--config",
"pyproject.toml"
]
require_serial: true

- repo: local
hooks:
Expand Down
Loading

0 comments on commit fef436a

Please sign in to comment.