Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ protected ForceMergeRequest readRequestFrom(StreamInput in) throws IOException {
@Override
protected void shardOperation(ForceMergeRequest request, ShardRouting shardRouting, Task task,
ActionListener<TransportBroadcastByNodeAction.EmptyResult> listener) {
threadPool.executor(ThreadPool.Names.FORCE_MERGE).execute(ActionRunnable.run(listener,
assert (task instanceof CancellableTask) == false; // TODO: add cancellation handling here once the task supports it
threadPool.executor(ThreadPool.Names.FORCE_MERGE).execute(ActionRunnable.supply(listener,
() -> {
assert (task instanceof CancellableTask) == false; // TODO: add cancellation handling here once the task supports it
IndexShard indexShard = indicesService.indexServiceSafe(shardRouting.shardId().getIndex())
.getShard(shardRouting.shardId().id());
indexShard.forceMerge(request);
listener.onResponse(EmptyResult.INSTANCE);
return EmptyResult.INSTANCE;
}));
}

Expand Down