This is an automated email from the ASF dual-hosted git repository. liyu pushed a commit to branch branch-1 in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-1 by this push: new 4648ab1 HBASE-22283 Print row and table information when failed to get region location 4648ab1 is described below commit 4648ab1db653557852d4bdcd49ecb6f84f49be70 Author: Yu Li <l...@apache.org> AuthorDate: Wed Apr 24 15:44:13 2019 +0800 HBASE-22283 Print row and table information when failed to get region location --- .../hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java index 5a41233..75bb649 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java @@ -49,6 +49,7 @@ import org.apache.hadoop.hbase.ipc.RpcControllerFactory; import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.RequestConverter; import org.apache.hadoop.hbase.protobuf.generated.ClientProtos; +import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.hbase.util.EnvironmentEdgeManager; /** @@ -366,10 +367,12 @@ public class RpcRetryingCallerWithReadReplicas { } catch (InterruptedIOException e) { throw e; } catch (IOException e) { - throw new RetriesExhaustedException("Can't get the location for replica " + replicaId, e); + throw new RetriesExhaustedException("Cannot get the location for replica" + replicaId + + " of region for " + Bytes.toStringBinary(row) + " in " + tableName, e); } if (rl == null) { - throw new RetriesExhaustedException("Can't get the location for replica " + replicaId); + throw new RetriesExhaustedException("Cannot get the location for replica" + replicaId + + " of region for " + Bytes.toStringBinary(row) + " in " + tableName); } return rl;