Skip to content

Commit

Permalink
Use concrete availability zone mapper in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edsavage committed Oct 17, 2023
1 parent 545a0af commit 4e0c234
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.elasticsearch.xpack.core.ml.action.SetUpgradeModeAction;
import org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentAction;
import org.elasticsearch.xpack.ml.autoscaling.AbstractNodeAvailabilityZoneMapper;
import org.elasticsearch.xpack.ml.autoscaling.NodeRealAvailabilityZoneMapper;
import org.elasticsearch.xpack.ml.rest.RestMlInfoAction;
import org.elasticsearch.xpack.ml.rest.dataframe.RestGetDataFrameAnalyticsAction;
import org.elasticsearch.xpack.ml.rest.inference.RestGetTrainedModelsAction;
Expand Down Expand Up @@ -337,7 +338,7 @@ public String[] getAnalyticsDestIndexAllowedSettings() {

@Override
public AbstractNodeAvailabilityZoneMapper getNodeAvailabilityZoneMapper(Settings settings, ClusterSettings clusterSettings) {
return null;
return new NodeRealAvailabilityZoneMapper(settings, clusterSettings);
}
}

Expand Down

0 comments on commit 4e0c234

Please sign in to comment.