Skip to content

IndexSettingsLifecycle requires a name to be set #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
christian-ertl opened this issue Nov 30, 2022 · 2 comments · Fixed by #776
Closed

IndexSettingsLifecycle requires a name to be set #456

christian-ertl opened this issue Nov 30, 2022 · 2 comments · Fixed by #776
Labels
Area: Specification Related to the API spec used to generate client code

Comments

@christian-ertl
Copy link

Java API client version

8.5.2

Java version

11

Elasticsearch Version

8.4.1

Problem description

IndexSettingsLifecycle requires a name to be set which is not necessary if the API is used directly. According to the JavaDoc, this is the name of the policy to be used to manage the index. We use component templates to specify this setting.

The setting that I want to overwrite for the specific index template is the rollover alias. We could work around this issue by specifying it through otherSettings on IndexSettings.

@christian-ertl
Copy link
Author

It's actually worse since this cannot be worked around when reading the templates.

@l-trotta l-trotta added the Area: Specification Related to the API spec used to generate client code label Mar 8, 2024
@l-trotta
Copy link
Contributor

l-trotta commented Mar 8, 2024

Hello, thanks for the report! This is an issue in the API specification used to produce the Java code, the policy name should be optional. It will be fixed soon and the Java client code will be updated to resolve this issue.

JoshMock added a commit to elastic/elasticsearch-specification that referenced this issue Apr 9, 2024
github-actions bot pushed a commit to elastic/elasticsearch-specification that referenced this issue Apr 10, 2024
l-trotta pushed a commit to elastic/elasticsearch-specification that referenced this issue Apr 10, 2024
l-trotta added a commit to elastic/elasticsearch-specification that referenced this issue Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Specification Related to the API spec used to generate client code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants