use of com.facebook.presto.server.RequestErrorTracker in project presto by prestodb.
the class HttpRemoteTask method removeRemoteSource.
@Override
public ListenableFuture<?> removeRemoteSource(TaskId remoteSourceTaskId) {
URI remoteSourceUri = uriBuilderFrom(taskLocation).appendPath("remote-source").appendPath(remoteSourceTaskId.toString()).build();
Request request = prepareDelete().setUri(remoteSourceUri).build();
RequestErrorTracker errorTracker = taskRequestErrorTracker(taskId, remoteSourceUri, maxErrorDuration, errorScheduledExecutor, "Remove exchange remote source");
SettableFuture<?> future = SettableFuture.create();
doRemoveRemoteSource(errorTracker, request, future);
return future;
}
Aggregations