mirror of https://github.com/apache/lucene.git
SOLR-12824: fixed test failure
This commit is contained in:
parent
961d565955
commit
4ca885ac9e
|
@ -36,14 +36,15 @@ import com.google.common.util.concurrent.AtomicDouble;
|
|||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.solr.client.solrj.SolrClient;
|
||||
import org.apache.solr.client.solrj.SolrRequest;
|
||||
import org.apache.solr.client.solrj.cloud.SolrCloudManager;
|
||||
import org.apache.solr.client.solrj.cloud.autoscaling.AutoScalingConfig;
|
||||
import org.apache.solr.client.solrj.cloud.autoscaling.ReplicaInfo;
|
||||
import org.apache.solr.client.solrj.cloud.SolrCloudManager;
|
||||
import org.apache.solr.client.solrj.cloud.autoscaling.TriggerEventProcessorStage;
|
||||
import org.apache.solr.client.solrj.cloud.autoscaling.TriggerEventType;
|
||||
import org.apache.solr.client.solrj.request.CollectionAdminRequest;
|
||||
import org.apache.solr.cloud.CloudTestUtils;
|
||||
import org.apache.solr.cloud.autoscaling.ActionContext;
|
||||
import org.apache.solr.cloud.autoscaling.CapturedEvent;
|
||||
import org.apache.solr.cloud.autoscaling.ComputePlanAction;
|
||||
import org.apache.solr.cloud.autoscaling.ExecutePlanAction;
|
||||
import org.apache.solr.cloud.autoscaling.NodeLostTrigger;
|
||||
|
@ -53,8 +54,8 @@ import org.apache.solr.cloud.autoscaling.TriggerActionBase;
|
|||
import org.apache.solr.cloud.autoscaling.TriggerEvent;
|
||||
import org.apache.solr.cloud.autoscaling.TriggerEventQueue;
|
||||
import org.apache.solr.cloud.autoscaling.TriggerListenerBase;
|
||||
import org.apache.solr.cloud.autoscaling.CapturedEvent;
|
||||
import org.apache.solr.cloud.autoscaling.TriggerValidationException;
|
||||
import org.apache.solr.common.MapWriter;
|
||||
import org.apache.solr.common.cloud.LiveNodesListener;
|
||||
import org.apache.solr.common.cloud.ZkStateReader;
|
||||
import org.apache.solr.common.params.CollectionAdminParams;
|
||||
|
@ -1315,11 +1316,11 @@ public class TestSimTriggerIntegration extends SimSolrCloudTestCase {
|
|||
assertTrue(totalReplicaRate.get() > 100.0);
|
||||
|
||||
// check operations
|
||||
List<Map<String, Object>> ops = (List<Map<String, Object>>)ev.context.get("properties.operations");
|
||||
List<MapWriter> ops = (List<MapWriter>)ev.context.get("properties.operations");
|
||||
assertNotNull(ops);
|
||||
assertTrue(ops.size() > 1);
|
||||
for (Map<String, Object> m : ops) {
|
||||
assertEquals("ADDREPLICA", m.get("params.action"));
|
||||
for (MapWriter m : ops) {
|
||||
assertEquals("ADDREPLICA", m._get("params.action", null));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue