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 c833473619
commit d64acfd304
1 changed files with 3 additions and 1 deletions

View File

@ -209,7 +209,9 @@ public class RpcRetryingCallerWithReadReplicas {
Future<Result> f = cs.pollForFirstSuccessfullyCompletedTask(operationTimeout, Future<Result> f = cs.pollForFirstSuccessfullyCompletedTask(operationTimeout,
TimeUnit.MILLISECONDS, startIndex, endIndex); TimeUnit.MILLISECONDS, startIndex, endIndex);
if (f == null) { 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(); return f.get();
} catch (ExecutionException e) { } catch (ExecutionException e) {