-
Notifications
You must be signed in to change notification settings - Fork 613
Description
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.