HBASE-22283 Print row and table information when failed to get region location
This commit is contained in:
parent
e4644c35c1
commit
4648ab1db6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user