Skip to content

Setting Java heap size via TEST_CLUSTER_PARAMS or es_params doesn't work #1004

@dbackeus

Description

@dbackeus

If I try to provide -Xms500m etc to set the Java heap size via TEST_CLUSTER_PARAMS as mentioned in the README or via the es_params argument when trying to start my test cluster I get ERROR: X is not a recognized option.

Also the test cluster runner doesn't appear to notice that the elasticsearch command fails so it keeps waiting the full 60 seconds before timing out.

Example:
Screenshot 2020-08-18 at 14 55 49

The command I'm attempting to run in this case is:

TEST_CLUSTER_PARAMS='-Xms500m -Xmx500m' bundle exec rspec

Is there something I'm missing or was there a regression at some point?

ElasticSearch documentation generally suggests modifying the ES_JAVA_OPTS env var to set heap size but I'm uncertain how to make use of that with Elasticsearch::Extensions::Test::Cluster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions