[TEST] Ensure primaries are allocated before bulk indexing with dymamic mappings

This commit is contained in:
Simon Willnauer 2014-09-23 08:34:25 +02:00
parent f0dc8a8ffb
commit 5533495171
1 changed files with 1 additions and 0 deletions

View File

@ -660,6 +660,7 @@ public class BulkTests extends ElasticsearchIntegrationTest {
@Test // issue 6410 @Test // issue 6410
public void testThatMissingIndexDoesNotAbortFullBulkRequest() throws Exception{ public void testThatMissingIndexDoesNotAbortFullBulkRequest() throws Exception{
createIndex("bulkindex1", "bulkindex2"); createIndex("bulkindex1", "bulkindex2");
ensureYellow();
BulkRequest bulkRequest = new BulkRequest(); BulkRequest bulkRequest = new BulkRequest();
bulkRequest.add(new IndexRequest("bulkindex1", "index1_type", "1").source("text", "hallo1")) bulkRequest.add(new IndexRequest("bulkindex1", "index1_type", "1").source("text", "hallo1"))
.add(new IndexRequest("bulkindex2", "index2_type", "1").source("text", "hallo2")) .add(new IndexRequest("bulkindex2", "index2_type", "1").source("text", "hallo2"))