Skip to content

Commit b7479c4

Browse files
committed
Resolve compilation failures for 8.0 branch
1 parent 26d0af7 commit b7479c4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/FeatureMigrationIT.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.elasticsearch.action.support.ActiveShardCount;
2626
import org.elasticsearch.client.Client;
2727
import org.elasticsearch.cluster.ClusterState;
28-
import org.elasticsearch.cluster.ClusterStateTaskExecutor;
2928
import org.elasticsearch.cluster.ClusterStateUpdateTask;
3029
import org.elasticsearch.cluster.metadata.IndexMetadata;
3130
import org.elasticsearch.cluster.metadata.Metadata;
@@ -300,16 +299,16 @@ public ClusterState execute(ClusterState currentState) throws Exception {
300299
}
301300

302301
@Override
303-
public void clusterStateProcessed(ClusterState oldState, ClusterState newState) {
302+
public void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState) {
304303
clusterStateUpdated.countDown();
305304
}
306305

307306
@Override
308-
public void onFailure(Exception e) {
307+
public void onFailure(String source, Exception e) {
309308
failure.set(e);
310309
clusterStateUpdated.countDown();
311310
}
312-
}, ClusterStateTaskExecutor.unbatched());
311+
});
313312

314313
clusterStateUpdated.await(10, TimeUnit.SECONDS); // Should be basically instantaneous
315314
if (failure.get() != null) {

0 commit comments

Comments
 (0)