Skip to content
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

Applying Index setting index.routing.allocation.require._name blocks Optimize start up #4786

Open
1 of 2 tasks
venetrius opened this issue Nov 12, 2024 · 5 comments
Open
1 of 2 tasks
Assignees
Labels
group:support All requests that are linked to a customer request. DRI: Tassilo potential:optimize 3.14.2 scope:optimize Changes to Optimize. type:bug Issues that describe a user-facing bug in the project. version:optimize 3.15.0

Comments

@venetrius
Copy link
Member

venetrius commented Nov 12, 2024

Environment (Required on creation)

3.14

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

After applying index.routing.allocation.require._name index settings, Optimize fail to start.

Steps to reproduce (Required on creation)

  1. Run an instance of Camunda run 7.22.
  2. Run an instance of Optimize 3.14 demo (with included Elasticsearch)
  3. Wait for Optimize to boot successfully and ensure it is running and you can see the data
  4. Run the following curl command to view the default index settings:
curl "localhost:9200/optimize-decision-instance-invoice-assign-approver_v5/_settings?pretty"
  1. Run the following curl command to add index.routing.allocation.require:
curl -X PUT "localhost:9200/optimize-decision-instance-invoice-assign-approver_v5/_settings?pretty" -H 'Content-Type: application/json' -d'
{
  "index.routing.allocation.require._name": "null"
}
  1. Repeat 4 to check the config has applied
  2. Restart Optimize and it will fail with the error seen in the clients' description

Observed Behavior (Required on creation)

On start up Optimize BE produces error:

16:32:5021:32:50.284 - Error deserializing co.elastic.clients.elasticsearch.indices.IndexRoutingAllocation: Unknown field 'require' (JSON path: ['optimize-dev-simulation-process-instance-projetgatlingsim3_v8'].settings.index.routing.allocation.require) (line no=1, column no=3924, offset=3923)

Expected behavior (Required on creation)

Root Cause (Required on prioritization)

This is caused by ES client class IndexRoutingAllocation not having the require field in combination with withJson method using the INSTANCE_REJECT_UNKNOWN_FIELDS setting

Solution Ideas

Hints

Links

Breakdown

Pull Requests

Dev2QA handover

  • Does this ticket need a QA test and the testing goals are not clear from the description? Add a Dev2QA handover comment
@venetrius venetrius added type:bug Issues that describe a user-facing bug in the project. scope:optimize Changes to Optimize. group:support All requests that are linked to a customer request. DRI: Tassilo labels Nov 12, 2024
@KarpovIvan
Copy link

@RomanJRW
Copy link
Contributor

C8 handled in camunda/camunda#24642

@tasso94
Copy link
Member

tasso94 commented Nov 14, 2024

Hi @KarpovIvan, the customer needs a fix for 3.14 as well. Can you please backport this?

@KarpovIvan
Copy link

Hi @tasso94, sure np

@KarpovIvan
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group:support All requests that are linked to a customer request. DRI: Tassilo potential:optimize 3.14.2 scope:optimize Changes to Optimize. type:bug Issues that describe a user-facing bug in the project. version:optimize 3.15.0
Projects
None yet
Development

No branches or pull requests

5 participants