HBASE-18021 Add more info in timed out RetriesExhaustedException for read replica client get processing (Huaxiang Sun)

This commit is contained in:
Michael Stack 2017-05-11 17:23:43 -07:00
parent 9bf5bc1986
commit 51cb53776d
1 changed files with 3 additions and 1 deletions

View File

@ -235,7 +235,9 @@ public class RpcRetryingCallerWithReadReplicas {
Future<Result> f = cs.pollForFirstSuccessfullyCompletedTask(operationTimeout,
TimeUnit.MILLISECONDS, startIndex, endIndex);
if (f == null) {
throw new RetriesExhaustedException("timed out after " + operationTimeout + " ms");
throw new RetriesExhaustedException("Timed out after " + operationTimeout +
"ms. Get is sent to replicas with startIndex: " + startIndex +
", endIndex: " + endIndex + ", Locations: " + rl);
}
return f.get();
} catch (ExecutionException e) {