-
Notifications
You must be signed in to change notification settings - Fork 693
update tasklist component template with configured number of shards and replicas #36569
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
Conversation
f596d17
to
99bbffe
Compare
898ad7b
to
05f68b1
Compare
985513c
to
3a9acef
Compare
3a9acef
to
10c263c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates tasklist component template with configured number of shards and replicas, enabling better control over index configuration settings.
- Updates schema management to use configurable shards and replicas per index
- Adds index settings update functionality to both ElasticSearch and OpenSearch schema managers
- Introduces comprehensive test coverage for component template settings updates
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
ReindexOpenSearchIT.java |
Minor cleanup removing blank lines and updating method signatures |
OpenSearchSchemaManagementIT.java |
Added comprehensive tests for component template settings updates |
ElasticSearchSchemaManagementIT.java |
Added comprehensive tests for component template settings updates with ES-specific imports |
OpenSearchSchemaManagerTest.java |
Updated test to use index-specific configuration methods |
SchemaManager.java |
Added updateIndexSettings() method to interface |
OpenSearchSchemaManager.java |
Implemented index settings update functionality and component template management |
ElasticsearchSchemaManager.java |
Implemented index settings update functionality for ElasticSearch |
SchemaStartup.java |
Added call to update index settings during schema initialization |
IndexSchemaValidator.java |
Removed unused newerVersionsForIndex method |
RetryOpenSearchClient.java |
Added methods for component template settings and alias management |
IndexSchemaValidatorOpenSearch.java |
Simplified schema validation logic |
RetryElasticsearchClient.java |
Added component template settings methods for ElasticSearch |
IndexSchemaValidatorElasticSearch.java |
Simplified schema validation logic |
TasklistOpenSearchProperties.java |
Added index-specific getter methods for shards and replicas |
TasklistElasticsearchProperties.java |
Added index-specific getter methods for shards and replicas |
...ist/els-schema/src/main/java/io/camunda/tasklist/schema/manager/OpenSearchSchemaManager.java
Show resolved
Hide resolved
.../els-schema/src/main/java/io/camunda/tasklist/schema/manager/ElasticsearchSchemaManager.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Some minor suggestions
tasklist/els-schema/src/main/java/io/camunda/tasklist/schema/SchemaStartup.java
Outdated
Show resolved
Hide resolved
...ist/els-schema/src/main/java/io/camunda/tasklist/schema/manager/OpenSearchSchemaManager.java
Outdated
Show resolved
Hide resolved
...ist/els-schema/src/main/java/io/camunda/tasklist/schema/manager/OpenSearchSchemaManager.java
Outdated
Show resolved
Hide resolved
Successfully created backport PR for |
This pull request refactors and simplifies the index settings management in Tasklist.
The main focus is was extracting the index settings update logic out of the
createSchema
that handles creating missing indices, templates and aliasesNow it is part of
updateIndexSettings
that makes sure that the number of replicas (for indices and component template) and shards (only in component template) are dynamically updated with the values from the configurationIf fixes 2 things:
Description
Checklist
Related issues
closes #31238
relates to #32872