[
https://issues.apache.org/jira/browse/HBASE-10355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910141#comment-13910141
]
Nicolas Liochon commented on HBASE-10355:
-----------------------------------------
bq. The following fragment solves the issue for me. Basically we just rethrow
InterrruptedIOEx. Can you take a look:
This would work. We need as well to exclude the SocketTimeoutException. This is
done by an utility class. So it would become:
{code}
private RegionLocations getRegionLocations(boolean useCache)
throws RetriesExhaustedException, DoNotRetryIOException,
InterruptedIOException {
RegionLocations rl;
try {
rl = cConnection.locateRegion(tableName, get.getRow(), useCache, true);
} catch (DoNotRetryIOException e) {
throw e;
} catch (RetriesExhaustedException e) {
throw e;
} catch (IOException e) {
ExceptionUtil.rethrowIfInterrupt(e);
throw new RetriesExhaustedException("Can't get the location", e);
}
if (rl == null) {
throw new RetriesExhaustedException("Can't get the locations");
}
return rl;
}
{code}
> Failover RPC's from client using region replicas
> ------------------------------------------------
>
> Key: HBASE-10355
> URL: https://issues.apache.org/jira/browse/HBASE-10355
> Project: HBase
> Issue Type: Sub-task
> Components: Client
> Reporter: Enis Soztutar
> Assignee: Nicolas Liochon
> Fix For: 0.99.0
>
> Attachments: 10355.v1.patch, 10355.v2.patch, 10355.v3.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)