Skip to content

[Bug]: elasticsearch_heap is ignored unless set to 1 (broken | bool gate) #492

Description

@afeefghannam89

elasticsearch_heap is meant as a string (heap size in GB) in this role, but the when: elasticsearch_heap | bool condition of the Set jvm heap size task in roles/elasticsearch/tasks/main.yml treats it as a boolean. This only works when elasticsearch_heap is 1, or false (to disable): any value >= 2 is interpreted as false, so the task is skipped and the heap is not set.

Solution: introduce a new variable elasticsearch_manage_heap to control whether the heap is managed by the role or by Elasticsearch/the JVM itself. When true, the value of elasticsearch_heap is used.

Relates to #396.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changePR / Issue / Fix that will implement a breaking change!bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions