From eb88fd146172b5fb618beaed2efa7080dab38b14 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Wed, 27 Apr 2016 15:27:13 -0400 Subject: [PATCH] [test] TasksIT expected a request per copy But instead the field stats API makes a request per primary. --- .../action/admin/cluster/node/tasks/TasksIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java b/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java index 5d6baf3f9cc..9a5e34fc60f 100644 --- a/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java +++ b/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java @@ -135,11 +135,11 @@ public class TasksIT extends ESIntegTestCase { ensureGreen("test"); // Make sure all shards are allocated client().prepareFieldStats().setFields("field").get(); - // the percolate operation should produce one main task + // the field stats operation should produce one main task NumShards numberOfShards = getNumShards("test"); assertEquals(1, numberOfEvents(FieldStatsAction.NAME, Tuple::v1)); // and then one operation per shard - assertEquals(numberOfShards.totalNumShards, numberOfEvents(FieldStatsAction.NAME + "[s]", Tuple::v1)); + assertEquals(numberOfShards.numPrimaries, numberOfEvents(FieldStatsAction.NAME + "[s]", Tuple::v1)); // the shard level tasks should have the main task as a parent assertParentTask(findEvents(FieldStatsAction.NAME + "[s]", Tuple::v1), findEvents(FieldStatsAction.NAME, Tuple::v1).get(0));