Yu Li created HBASE-22283:
-----------------------------
Summary: Print row and table information when failed to get region
location
Key: HBASE-22283
URL: https://issues.apache.org/jira/browse/HBASE-22283
Project: HBase
Issue Type: Improvement
Components: Client, logging
Affects Versions: 2.1.4, 2.0.5, 1.4.9
Reporter: Yu Li
Assignee: Yu Li
Currently when failed to get region location, especially when the
{{RegionLocations}} returned is null in
{{RpcRetryingCallerWithReadReplicas.getRegionLocations}} (we may see more
useful message if there's an exception thrown), we only log the replica id w/o
any detailed information about row and table, which makes the debugging
difficult. Below is an example error message:
{noformat}
Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get
the location for replica 0
at
org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:372)
at
org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:153)
at
org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:58)
at
org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:219)
at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:277)
at
org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:438)
at org.apache.hadoop.hbase.client.ClientScanner.next(ClientScanner.java:312)
at
org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:639)
at
org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366)
at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:409)
{noformat}
And here we propose to improve this part.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)