Skip to content

Conversation

@nielsbauman
Copy link
Contributor

We only use the request string in case the validation failed, but serializing the whole request class can be relatively expensive (e.g. if a component template has many mappings, the CompressedXContent needs to be converted to string). Therefore, it makes more sense to use a Supplier which only gets invoked when validation failed.

We only use the request string in case the validation failed, but
serializing the whole request class can be relatively expensive (e.g. if
a component template has many mappings, the `CompressedXContent` needs
to be converted to string). Therefore, it makes more sense to use a
`Supplier` which only gets invoked when validation failed.
@nielsbauman nielsbauman added :Core/Infra/Core Core issues without another label :Data Management/Indices APIs APIs to create and manage indices and templates >refactoring labels Sep 25, 2025
@elasticsearchmachine elasticsearchmachine added v9.2.0 Team:Core/Infra Meta label for core/infra team Team:Data Management Meta label for data/management team labels Sep 25, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@nielsbauman nielsbauman enabled auto-merge (squash) September 25, 2025 18:11
@nielsbauman nielsbauman merged commit 7a6f394 into elastic:main Sep 25, 2025
34 checks passed
@nielsbauman nielsbauman deleted the reserved-state-string branch September 25, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label :Data Management/Indices APIs APIs to create and manage indices and templates >refactoring Team:Core/Infra Meta label for core/infra team Team:Data Management Meta label for data/management team v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants