Skip to content

Conversation

@abeyad
Copy link

@abeyad abeyad commented Feb 24, 2017

This commit removes a broken test that attempts to ensure, when
there are not enough nodes to allocate the wait_for_active_shards
number of shards, that shardsAcknowledged returns false. We already
test for this in WaitForActiveShardsIT, and this test introduces a timeout
so we do not wait the full 30s before timing out and returning
shardsAcknowledged=false. A very small timeout, however, can cause the test
to fail for other reasons, namely that the master has not even gotten the chance
to update the cluster state with the newly created index. Increasing the timeout
here to allow index creation in the cluster state to complete adds more duration
to a test that is not really necessary. Hence, this test is being removed.

This commit removes an necessary test that ensures if
wait_for_active_shards cannot be fulfilled on index creation, that the
response returns shardsAcknowledged=false.  However, this is already
tested in WaitForActiveShardsIT and it would improve the speed of the
test runs to get rid of any unnecessary tests, especially those that
depend on timeouts.
@abeyad abeyad added >non-issue >test Issues or PRs that are addressing/adding tests labels Feb 24, 2017
@rjernst
Copy link
Member

rjernst commented Feb 24, 2017

LGTM

@abeyad abeyad merged commit 550f323 into elastic:master Feb 24, 2017
@abeyad
Copy link
Author

abeyad commented Feb 24, 2017

thanks @rjernst

@abeyad abeyad deleted the remove_wait_for_active_shard_rest_test branch February 24, 2017 19:55
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Feb 25, 2017
* master: (26 commits)
  CLI: Fix prompting for yes/no to handle console returning null (elastic#23320)
  Tests: Fix reproduce line for packagingTest (elastic#23365)
  Build: Remove extra copies of netty license (elastic#23361)
  [TEST] Removes timeout based wait_for_active_shards REST test (elastic#23360)
  [TEST] increase timeout slightly in wait_for_active_shards test to allow for index creation cluster state update to be processed before ensuring the wait times out
  Handle snapshot repository's missing index.latest
  Adding equals/hashCode to MainResponse (elastic#23352)
  Always restore the ThreadContext for operations delayed due to a block (elastic#23349)
  Add support for named xcontent parsers to high level REST client (elastic#23328)
  Add unit tests for ParentToChildAggregator (elastic#23305)
  Fix after last merge with master and apply last comments
  [INGEST] Lazy load the geoip databases.
  disable BWC tests for the highlighters, need a new 5.x build to make it work
  Expose WordDelimiterGraphTokenFilter (elastic#23327)
  Test that buildCredentials returns correct clazz (elastic#23334)
  Add BreakIteratorBoundaryScanner support for FVH (elastic#23248)
  Prioritize listing index-N blobs over index.latest in reading snapshots (elastic#23333)
  Test: Fix hdfs test fixture setup on windows
  delete and index tests can share some part of the code
  Remove createSampleDocument method and use the sync'ed index method
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue >test Issues or PRs that are addressing/adding tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants