Search in sources :

Example 1 with RequestErrorTracker

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;
}
Also used : TaskUpdateRequest(com.facebook.presto.server.TaskUpdateRequest) Request(com.facebook.airlift.http.client.Request) URI(java.net.URI) RequestErrorTracker.taskRequestErrorTracker(com.facebook.presto.server.RequestErrorTracker.taskRequestErrorTracker) RequestErrorTracker(com.facebook.presto.server.RequestErrorTracker)

Aggregations

Request (com.facebook.airlift.http.client.Request)1 RequestErrorTracker (com.facebook.presto.server.RequestErrorTracker)1 RequestErrorTracker.taskRequestErrorTracker (com.facebook.presto.server.RequestErrorTracker.taskRequestErrorTracker)1 TaskUpdateRequest (com.facebook.presto.server.TaskUpdateRequest)1 URI (java.net.URI)1