From da65493965bc49cb10ddf6ae3bf69784be6c1a10 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Thu, 13 Aug 2015 12:47:22 +0200 Subject: [PATCH] [qa] multinode tests fails when you run low on disk space (85%) Indeed, we check within the test suite that we have not unassigned shards. But when the test starts on my machine I get: ``` [elasticsearch] [2015-08-13 12:03:18,801][INFO ][org.elasticsearch.cluster.routing.allocation.decider] [Kehl of Tauran] low disk watermark [85%] exceeded on [eLujVjWAQ8OHdhscmaf0AQ][Jackhammer] free: 59.8gb[12.8%], replicas will not be assigned to this node ``` ``` 2> REPRODUCE WITH: mvn verify -Pdev -Dskip.unit.tests -Dtests.seed=2AE3A3B7B13CE3D6 -Dtests.class=org.elasticsearch.smoketest.SmokeTestMultiIT -Dtests.method="test {yaml=smoke_test_multinode/10_basic/cluster health basic test, one index}" -Des.logger.level=ERROR -Dtests.assertion.disabled=false -Dtests.security.manager=true -Dtests.heap.size=512m -Dtests.locale=ar_YE -Dtests.timezone=Asia/Hong_Kong -Dtests.rest.suite=smoke_test_multinode FAILURE 38.5s | SmokeTestMultiIT.test {yaml=smoke_test_multinode/10_basic/cluster health basic test, one index} <<< > Throwable #1: java.lang.AssertionError: expected [2xx] status code but api [cluster.health] returned [408 Request Timeout] [{"cluster_name":"prepare_release","status":"yellow","timed_out":true,"number_of_nodes":2,"number_of_data_nodes":2,"active_primary_shards":3,"active_shards":3,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":3,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":50.0}] ``` We don't check anymore if we have unassigned shards and we wait for `yellow` status instead of `green`. Closes #12852. --- .../rest-api-spec/test/smoke_test_multinode/10_basic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/smoke-test-multinode/rest-api-spec/test/smoke_test_multinode/10_basic.yaml b/qa/smoke-test-multinode/rest-api-spec/test/smoke_test_multinode/10_basic.yaml index 74066ebf6b1..c6b50b6d38a 100644 --- a/qa/smoke-test-multinode/rest-api-spec/test/smoke_test_multinode/10_basic.yaml +++ b/qa/smoke-test-multinode/rest-api-spec/test/smoke_test_multinode/10_basic.yaml @@ -1,5 +1,6 @@ # Integration tests for smoke testing multi-node IT -# +# If the local machine which is running the test is low on disk space +# We can have one unassigned shard --- "cluster health basic test, one index": - do: @@ -12,7 +13,7 @@ - do: cluster.health: - wait_for_status: green + wait_for_status: yellow - is_true: cluster_name - is_false: timed_out @@ -22,5 +23,4 @@ - gt: { active_shards: 0 } - gte: { relocating_shards: 0 } - match: { initializing_shards: 0 } - - match: { unassigned_shards: 0 } - gte: { number_of_pending_tasks: 0 }