From 5533495171c8fd60180d7a39a08b256806251dd5 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 23 Sep 2014 08:34:25 +0200 Subject: [PATCH] [TEST] Ensure primaries are allocated before bulk indexing with dymamic mappings --- src/test/java/org/elasticsearch/document/BulkTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/elasticsearch/document/BulkTests.java b/src/test/java/org/elasticsearch/document/BulkTests.java index 0fd27701fa5..1ac9497f74f 100644 --- a/src/test/java/org/elasticsearch/document/BulkTests.java +++ b/src/test/java/org/elasticsearch/document/BulkTests.java @@ -660,6 +660,7 @@ public class BulkTests extends ElasticsearchIntegrationTest { @Test // issue 6410 public void testThatMissingIndexDoesNotAbortFullBulkRequest() throws Exception{ createIndex("bulkindex1", "bulkindex2"); + ensureYellow(); BulkRequest bulkRequest = new BulkRequest(); bulkRequest.add(new IndexRequest("bulkindex1", "index1_type", "1").source("text", "hallo1")) .add(new IndexRequest("bulkindex2", "index2_type", "1").source("text", "hallo2"))