Skip to content
Open
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 @@ -80,7 +80,7 @@ final class GrpcGetDataStream

static final FluentBackoff BACK_OFF_FACTORY =
FluentBackoff.DEFAULT
.withInitialBackoff(Duration.millis(10))
.withInitialBackoff(Duration.millis(1))
.withMaxBackoff(Duration.standardSeconds(10));

/**
Expand Down Expand Up @@ -439,23 +439,24 @@ private <ResponseT> ResponseT issueRequest(QueuedRequest request, ParseFn<Respon
try {
queueRequestAndWait(request);
return parseFn.parse(request.getResponseStream());
} catch (AppendableInputStream.InvalidInputStreamStateException | CancellationException e) {
} catch (CancellationException e) {
throwIfShutdown(request, e);
if (!(e instanceof CancellationException)) {
throw e;
}
} catch (AppendableInputStream.InvalidInputStreamStateException e) {
throwIfShutdown(request, e);
throw e;
} catch (IOException e) {
LOG.error("Parsing GetData response failed: ", e);
try {
BackOffUtils.next(Sleeper.DEFAULT, backoff);
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throwIfShutdown(request, e);
throw new RuntimeException(e);
}
// In all cases we are going to retry, perform some backoff
try {
BackOffUtils.next(Sleeper.DEFAULT, backoff);
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
}
}

Expand Down
Loading