Skip to content

Cluster#start getting Timeout::Error #371

@jgoggles

Description

@jgoggles

Running Elasticsearch::Extensions::Test::Cluster::Cluster.new.start produces:

Timeout::Error: execution expired from /Users/danw/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/elasticsearch-extensions-0.0.22/lib/elasticsearch/extensions/test/cluster.rb:497:in 'sleep' from /Users/danw/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/elasticsearch-extensions-0.0.22/lib/elasticsearch/extensions/test/cluster.rb:497:in 'block (2 levels) in __wait_for_status' from /Users/danw/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/elasticsearch-extensions-0.0.22/lib/elasticsearch/extensions/test/cluster.rb:489:in 'loop' from /Users/danw/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/elasticsearch-extensions-0.0.22/lib/elasticsearch/extensions/test/cluster.rb:489:in 'block in __wait_for_status'

I believe this is because my cluster status is yellow due to some unallocated replicas. However when I set the number of replicas to 0 on my cluster running on port 9200 and ran

Elasticsearch::Extensions::Test::Cluster::Cluster.new(port:9200).start

I receive the same Timeout::Error

Ive also tried setting number_of_nodes: 1, which produces the same result.

It would be nice to be able to start the cluster with the option of skipping wait_for_green, but I would also appreciate some guidance with my current issue.

Also looking at the code it doesnt seem that setting the timeout option upon initialize does anything since wait_for_green calls __wait_for_status('green', 60), unless I'm missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions